Jump to content

Warning: filetype() Lstat failed for


MikeDXUNL

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.