stat(file) question
Posted: Fri Mar 24, 2006 8:35 am
I am testing out the function stat(file), which is supposed to return information on a file. Does this only work for PHP files? I wanted to see if it worked on an image eg: stat(image.jpg), but I get this warning error:
Warning: Division by zero in /hsphere/local/home/bruceg/inspired-evolution.com/stat.php on line 2
Warning: stat(): Stat failed for gif (errno=2 - No such file or directory) in /hsphere/local/home/bruceg/inspired-evolution.com/stat.php on line 2.
Also it doesn't work when I try stat(file.php).
I get the no such file or directory error even though both my test page and the file I am trying to get the information on are at the same directory level.
what gives?
Warning: Division by zero in /hsphere/local/home/bruceg/inspired-evolution.com/stat.php on line 2
Warning: stat(): Stat failed for gif (errno=2 - No such file or directory) in /hsphere/local/home/bruceg/inspired-evolution.com/stat.php on line 2.
Also it doesn't work when I try stat(file.php).
I get the no such file or directory error even though both my test page and the file I am trying to get the information on are at the same directory level.
what gives?