|
My website has got an area to upload files and make new folders and delete files or folders etc. I had a problem at the beginning where if a file or folder had spaces it would cause problems eg if the file name was "my folder" and was in my root upload directory, when you clicked on it to follow the link and get into the folder, it would just do nothing, I figured out that this was cause the link it was trying to open was /my and not /my folder, so I used preg_replace to replace any odd characters and spaces into underscores _ now this is not ideal for me, it works but I would rather be allowed the spaces, the other characters can be replaced if they must but spaces are a hard one to live without.
I hope someone can give an explanatory solution for this
Thanks
|