I was wondering if there is a snippet of code that checks if an img file exists on a remote server? I tried fopen, but it doesn't seem to work right.
[man]file_exists[/man]
<? $filename = 'filename.txt'; if (!file_exists($filename)) { echo 'file does not exist!'; }else { echo 'file does exist!'; } ?>