note 18615 added to function.filesize

From: Date: Tue, 29 Jan 2002 19:25:38 +0000
Subject: note 18615 added to function.filesize
Groups: php.notes 
Request: Send a blank email to php-notes+get-25974@lists.php.net to get a copy of this message
NOTE: The filesize() function will report the usuall PHP run-time error _in addition to_ returning false if it can't find the file. I assume any error with this function will report an error too, but I've only tested for the file not found condition. If you're expecting or allowing the script to go on after any such error, just add the @ symbol before it to ignore the error. As always with the @ symbol though, still check any variables that were expected to have a value in them from this function before you use them. -- http://www.php.net/manual/en/function.filesize.php http://master.php.net/manage/user-notes.php?action=edit+18615 http://master.php.net/manage/user-notes.php?action=delete+18615 http://master.php.net/manage/user-notes.php?action=reject+18615

« previous php.notes (#25974) next »