stat failed

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
katun
Forum Newbie
Posts: 5
Joined: Sun Aug 22, 2004 12:20 pm

stat failed

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply