I want to open a directory on linux file system using the opendir()
PHP function.
The path might contain spaces or some other special characters.
While I am trying to open the directory I get:
Warning: opendir(/home/user/_demo/test/salamis\ test): failed to open dir: No such file or directory
I firstly tried to replace the space character with \
(slash space) using:
str_replace(" ","\ ","salamis test");
But unfortunately is not working. Any suggestions?