I have some folders that contain spaces, eg:
/user/mike/abc/de fg/hi
How do I escape the path so I can access it with php? (eg. filegetcontents glob, file_exists etc..) I tried:
$files = glob("/user/mike/abc/de\ fg/hi/*.*");
print_r($files) //is empty
I also tried escapeshellcmd and escapeshellarg.
What am I doing wrong? (beside using files with spaces)