Jump to content

filesize problem


alin19

Recommended Posts

i use ubuntu 9.10 and i have mountet a folder from an windows

 

/mount/FOLDER

/mount/FOLDER/FILE.txt

 

i try to find out the size of folder : FILE.txt

 

PHP Warning: filesize(): stat failed for /mount/FOLDER/FISIER.txt in /home/alin/programe/instalate/workspace/aptana work/spartacus/Running/indices.php on line 26

 

access right:

 

-rwxr-xr-x 1 500 root 183567853 2009-11-09 17:38 FISIER.txt

 

code that generates warning

if(file_exists($fileName))

        {

 

            $fp=fopen($fileName,'r');

            echo (fgets($fp));  //it writes the first line from the folder

                $fileSize=filesize($fileName);//linia 26

 

i can't figure out why i can read from the file but the function stat and lstat returns false

Link to comment
https://forums.phpfreaks.com/topic/181088-filesize-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.