Linux, PHP; scandir does not work with spaces. What can I do?
I’m making a website for users to upload files. Problem is, I would like my code to handle white spaces. When running the code, scandir cuts off any files containing spaces. So a file such as “My File.txt” is returned as “My”. What would be the best way of handling and preserving files that contain spaces in PHP?