note 40516 deleted from function.file-exists by nlopess

From: Date: Sat, 13 Mar 2004 21:25:40 +0000
Subject: note 40516 deleted from function.file-exists by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-66776@lists.php.net to get a copy of this message
Note Submitter: pbjasons No at Spam hotmail.com ---- in this $url = "http://www.google.it/intl/it_it/images/logo.gif"; if (remote_file_exists ($url)) { print ($url . " file doesn't exists!"); } else { print ($url . " file exists!"); } from the previous post, it took me a few minutes to realize but your logic is backwards on your example. It should be this: $url = "http://www.google.it/intl/it_it/images/logo.gif"; if (remote_file_exists ($url)) { print ($url . " file exists!"); } else { print ($url . " file doesn't exists!"); } just to save someone else a few minutes of WTF!

« previous php.notes (#66776) next »