Thread
:
PHP Checking if URL/File Exists... Return True/False
View Single Post
09-08-2009, 01:50 PM
MichaelP
Registered User
Industry Role:
Join Date: Aug 2003
Location: QWEBEC Corporate Office
Posts: 7,124
$yourfile = "full/path/to/your/file.php-jpg-gif-whatever" ;
IF (file_exists($yourfile)) {
print "Your File Does Existst" ; // TRUE
} ELSE {
print "Your file Doesn't exists" ; // FALSE
}
Last edited by MichaelP
; 09-08-2009 at
01:52 PM
..
MichaelP
View Public Profile
Visit MichaelP's homepage!
Find More Posts by MichaelP