note 40516 added to function.file-exists

From: Date: Sat, 06 Mar 2004 02:52:50 +0000
Subject: note 40516 added to function.file-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-66333@lists.php.net to get a copy of this message
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! ---- Manual Page -- http://www.php.net/manual/en/function.file-exists.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40516 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40516&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40516&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66333) next »