note 7738 rejected from function.readdir by sander
| From: | sander@php.net | Date: | Sat, 06 Apr 2002 19:11:30 +0000 |
| Subject: | note 7738 rejected from function.readdir by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-28742@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");