note 3563 deleted from function.fopen by alindeman

From: Date: Sat, 17 May 2003 20:54:42 +0000
Subject: note 3563 deleted from function.fopen by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48245@lists.php.net to get a copy of this message
Note Submitter: jamie.watt@murchison.com.au To check if a file exists using http or ftp use the following: $fp = @fopen("http://www.someurl.com/testfile.php3","r"); if ($fp) { print"The file exists!"; } else { print"The file does not exist"; } Note: The "@" in front of fopen suppresses the error output of the function. I hope this clears up some confusion.

« previous php.notes (#48245) next »