RE: [PHP] readdir problem with white spaces
| From: | Jay Blanchard | Date: | Thu, 15 Jun 2006 12:24:56 +0000 |
| Subject: | RE: [PHP] readdir problem with white spaces | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-238078@lists.php.net to get a copy of this message | ||
[snip]
When I read the directory, if the file has more than one "white spaces",
readdir only return me
the file with one space ...
so if I have on the file system . "ROAD 1 005.JPG" or "ROAD 1
0005.JPG" php readdir
return me ROAD 1 005.JPG!!!!!!
[/snip]
Additional white space is typically ignored in programming languages
that are built to deal with strings, but you may be able to count the
string length and/or use regex to make sure that the white space
remains.