note 76097 added to function.filesize
| From: | coolmax1atpocztadotfm at osu1 dot php dot net | Date: | Fri, 29 Jun 2007 21:55:03 +0000 |
| Subject: | note 76097 added to function.filesize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128097@lists.php.net to get a copy of this message | ||
@l0co at wp dot pl:
fopen with w+:
Open for reading and writing; place the file pointer at the beginning of the file and truncate the
file to zero length. If the file does not exist, attempt to create it.
in the second case, it will be:
<?php
$f = fopen($filename, 'w+'); // Now file specified in the $filename will be zero byte
length
echo filesize($filename); //now filesize return zero
fclose($f);
?>
Did you mean that or something other?
----
Server IP: 195.136.184.34
Probable Submitter: 89.174.121.145
----
Manual Page -- http://www.php.net/manual/en/function.filesize.php
Edit -- https://master.php.net/note/edit/76097
Del: integrated -- https://master.php.net/note/delete/76097/integrated
Del: useless -- https://master.php.net/note/delete/76097/useless
Del: bad code -- https://master.php.net/note/delete/76097/bad+code
Del: spam -- https://master.php.net/note/delete/76097/spam
Del: non-english -- https://master.php.net/note/delete/76097/non-english
Del: in docs -- https://master.php.net/note/delete/76097/in+docs
Del: other reasons-- https://master.php.net/note/delete/76097
Reject -- https://master.php.net/note/reject/76097
Search -- https://master.php.net/manage/user-notes.php