directory - Get PHP to read directories with quotes in their names? -


I am using PHP 5's scanners ($ dir) function to repeat through a directory and files I print a xml list. Only when there is a single quote in the directory, the scanner does not give any item! It does not return false (like it failed) or generate a warning or error - just a blank thought?

  $ item = scanner (stripsash ($ dir)); // in the spread slash case are on magic_quotes ($ item === incorrect) die ("returned scandor failure"); Print_r ($ item)  

I tested it on windows and it worked fine

Also, use this to ensure that your error level is too high:

  Ini_set ('error_reporting', E_ALL);  

Comments