note 30445 added to function.filesize

From: Date: Tue, 18 Mar 2003 15:53:51 +0000
Subject: note 30445 added to function.filesize
Groups: php.notes 
Request: Send a blank email to php-notes+get-45465@lists.php.net to get a copy of this message
If you are using filesize($file), and $file variable is passed by using the function file(), then first use trim to get rid of the new line at the end of the $file variable. You could do: filesize(trim($file)) Hope this helps! -- http://www.php.net/manual/en/function.filesize.php http://master.php.net/manage/user-notes.php?action=edit+30445 http://master.php.net/manage/user-notes.php?action=delete+30445 http://master.php.net/manage/user-notes.php?action=reject+30445

« previous php.notes (#45465) next »