note 11936 deleted from function.filesize.php by jmcastagnetto

From: Date: Wed, 14 Mar 2001 21:14:11 +0000
Subject: note 11936 deleted from function.filesize.php by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-12401@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.

« previous php.notes (#12401) next »