note 11936 added to function.filesize.php

From: Date: Wed, 14 Mar 2001 11:07:06 +0000
Subject: note 11936 added to function.filesize.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12388@lists.php.net to get a copy of this message
filesize seems to have problems if you use it straight after fopen create fwrite [ fflush ] fclose If you give filesize the full path to the file, it returns 0, even though the file exists and you can read the contents. The only way to get filesize to return the size of the file is to chdir to the directory containing the file then run filesize on the filename only. If you chdir then hand filesize the full filepath, it still returns 0. http://www.php.net/manual/en/function.filesize.php

« previous php.notes (#12388) next »