Page 1 of 1

Warning: lstat failed for test.txt (errno=2 - No such file..

Posted: Tue Feb 15, 2005 7:45 am
by giaCo
Warning: lstat failed for test.txt (errno=2 - No such file or directory) in /public_html/t/code.php on line 27

I am getting this warning when trying to dsplay items in a folder.

The line of code the warning is referring to is:
$DirOrFile = filetype($file);



This initially worked fine but now is giving me a warning!

Does anybody have any idea how this could be resolved? Any help would be hugely appreciated!!!!

Thanks

Posted: Tue Feb 15, 2005 7:49 am
by n00b Saibot
folder name might not be same in real and in script

Posted: Tue Feb 15, 2005 8:07 am
by giaCo
It is returning the correct filenames, such as test.txt, and it is executing properly-just getting the warnings!!!

Is there anything else that could possibly be causing it?

Posted: Tue Feb 15, 2005 8:09 am
by n00b Saibot
may be a path prob. see to it