Welcome Guest, Not a member yet? Register   Sign In
Check if an image exists on remote server
#1

[eluser]JoostV[/eluser]
I need to check whether an image exists on a remote server. Anybody got any quick pointers?

if (file_exists($file) && is_file($file)Wink {
}
only works for local files.
#2

[eluser]Sbioko[/eluser]
Check your allow_url_fopen variable in your php.ini. If it set to true, then you can check it using file_exists function.




Theme © iAndrew 2016 - Forum software by © MyBB