Revision: 39643
Updated Code
at January 19, 2011 12:42 by dropthenerd
Updated Code
$file = "http://www.dropthenerd.com/demo/file_exists.php"; $fileExists = @file_get_contents($file,null,null,-1,1) ? true : false ; if($fileExists){ echo "File Exists!"; }else{ echo "Sorry, we couldn't find the file."; }
Revision: 39642
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 19, 2011 12:37 by dropthenerd
Initial Code
$file = "http://www.dropthenerd.com/demo/file_exists.php"; $fileExists = @file_get_contents($pdfFile,null,null,-1,1) ? true : false ; if($fileExists){ echo "File Exists!"; }else{ echo "Sorry, we couldn't find the file."; }
Initial URL
http://www.dropthenerd.com/how-to-see-if-a-remote-file-exists-php/
Initial Description
Initial Title
How to see if a remote file exists
Initial Tags
file
Initial Language
PHP