RE: readdir problem with white spaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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.
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux