note 7738 added to readdir

From: Date: Sun, 13 Aug 2000 04:45:13 +0000
Subject: note 7738 added to readdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-1786@lists.php.net to get a copy of this message
When dealing with directories and paths, some won't work. For example a directory with a leading zero, such as in the following line: $d = dir("\stuff\08"); To fix this, all that must be added is a second backslash. This is often required in console C++ programming and is required here as well. Corrected code: $d = = dir("\stuff\\08"); http://www.php.net/manual/function.readdir.php

« previous php.notes (#1786) next »