note 30445 deleted from function.filesize by tomsommer
| From: | tomsommer@php.net | Date: | Wed, 01 Sep 2004 17:32:21 +0000 |
| Subject: | note 30445 deleted from function.filesize by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75878@lists.php.net to get a copy of this message | ||
Note Submitter: gt at realvertex dot com
----
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!