Forum Moderators: coopster
I'm having a problem with the filesize() function while running a script in a directory above where the files being read are.
The script is located in /members/download.php.
I have a query string at the end that retreives the directory from the database, and tells the script where to locate the files.
It prints out the filenames perfectly, but all the filesizes come out as 0.
Any ideas on the remedy?
error_reporting (E_ALL);
add it to the top of your code and php will even display warnings, such as files do not exist on which you try to get the filesize. more info can be obtained about error reporting here [de3.php.net].