MikeDXUNL Posted November 28, 2008 Share Posted November 28, 2008 Warning: filetype() [function.filetype]: Lstat failed for ../photos//test test in C:\wamp\www\fitchband\admin\options.php on line 136 Line 136: $type = filetype($path ."/". $file); <?php $path = '../photos/'; $listDirectories = true; if(is_dir($path)) { $dir = opendir($path); while(false !== ($file = readdir($dir))) { $type = filetype($path ."/". $file); if($file != "." && $file != ".." && $file != "Thumbs.db" && $listDirectories && $type == "dir") { $list_dir[] = $file; } } } closedir($dir); ?> one folder in my '../photos' dir is called 'test test' any clue as to why this happens? other folders, such as: Band Event 1 Band test two Stuffff all work.. ALSO: when i try to delete 'test test' from the photos folder on my pc, it says "Can not delete file: Can not read from source file or disk." Link to comment https://forums.phpfreaks.com/topic/134581-warning-filetype-lstat-failed-for/ Share on other sites More sharing options...
genericnumber1 Posted November 28, 2008 Share Posted November 28, 2008 "../photos//test test" looks like there's an extra / in there... Link to comment https://forums.phpfreaks.com/topic/134581-warning-filetype-lstat-failed-for/#findComment-700763 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.