I am using this function:

function isAfile($url){
    $fp = @fopen("$url","r");
    if ($fp)
      { //print "The file exists!";
      return 1; }
    else
      { //print "The file does not exist";
    return 0; }
 }

to check if a remote file exists... now the problem is that the URL's i am
trying to check are in this way:
http://waptopic.supereva.it/loghiesuonerie.it/LogoGen.php?id=1100
The problem is that LogoGen.php exists but depending on the ID the image may
exists or not.
How can i actually check if the image exists?
Thanks anyone!




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to