note 20896 added to ref.filesystem

From: Date: Sat, 20 Apr 2002 18:27:32 +0000
Subject: note 20896 added to ref.filesystem
Groups: php.notes 
Request: Send a blank email to php-notes+get-29616@lists.php.net to get a copy of this message
A note concerning the comment of wildpeaks@warpdawg.com above: This function does not work correctly, because there is missed the slash "/" twice in the code: The following line / lines $isFile = is_file("$dir$entry"); $isDir = is_dir("$dir$entry"); should look like this: $isFile = is_file("$dir/$entry"); $isDir = is_dir("$dir/$entry"); The "/" applies to Unix or Linux, for Windows it should be "\\" (twice because the first backslash is a character indicating a special instruction - like "\n" for newline). -- http://www.php.net/manual/en/ref.filesystem.php http://master.php.net/manage/user-notes.php?action=edit+20896 http://master.php.net/manage/user-notes.php?action=delete+20896 http://master.php.net/manage/user-notes.php?action=reject+20896

« previous php.notes (#29616) next »