Page 1 of 1

stat failed

Posted: Wed Apr 12, 2006 6:48 am
by katun
I use this code:
$size = filesize($file_path);
and receive this message:
Warning: filesize() [function.filesize]: stat failed
What is the problem?
8O

Posted: Wed Apr 12, 2006 8:56 am
by feyd
what is $file_path? filesize() requires direct file system level access to the file. If the file is across a network on another machine or a URL you will not be able to access that information.