note 40760 added to function.file-exists

From: Date: Sat, 13 Mar 2004 21:17:51 +0000
Subject: note 40760 added to function.file-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-66773@lists.php.net to get a copy of this message
When I run the "remote_file_exists" script with the same URL (the gif at google.it) it works, if I change the filename (like logonotthere.gif) it still works ("doesn't exist") BUT when I change the original URL to www.google.wtf/... (just change "it" to "wtf") then it says "file exists". The same with any other file/domain I tried. Even with filenames on my own domain it says that the file exists, even though that's not the case....weird, isn't it? I really needed a script that adds a link if the domain/file exists, or add no link if there's something wrong with the remote address (temporarily offline or so)...well, can't have everything... ---- Manual Page -- http://www.php.net/manual/en/function.file-exists.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40760 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40760&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40760&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66773) next »