I want to get the header from a website with the IP address.
I used get_header() but this only works with URL! Are there other ways to do this? Without using gethostbyaddre.
You have an IP address, e.g.: 127.0.0.1
You want to use get_headers() (with trailing s)
...but get_headers() expects a URL:
array get_headers ( string $url [, int $format = 0 ] ) You add http:// and you get a URL: http://127.0.0.1—voilá!