I want to check if a file exists on a remote webserver with php.
I now have this function:
function url_exists($url) { // Version 4.x supported
The remote server probably resolves files using the Host header. If so, you need to use a domain name.
Host
You may be able to explicitly pass a Host header to the IP address, but I wouldn't recommend it.