the mkdir command is adding a "?" to the name of every subfolder I put into this one folder, anyone know why?
| SitePoint Sponsor |





the mkdir command is adding a "?" to the name of every subfolder I put into this one folder, anyone know why?



This is really weird. What happens if you try to rename the folder from the value to the question mark to the value without it? Does it still leave the question mark?





PHP Code:$cmd=<<<EOS
mkdir -p w3
EOS;
exec($cmd);
If you execute the code on the server, in that folder, do you get the same results? (i.e. through ssh / telnet?)
Last edited by lieut_data; Jul 12, 2003 at 12:12.
My name is Steve, and I'm a super-villian.



Did you play around with how you store the command? Maybe try:
I mean, I really don't know what to tell you if it is only happening in the one directory. That is too weird. You may also want to think about removing that directory and recreating it...PHP Code:$cmd= 'mkdir -p w3';
exec($cmd);





why not simply mkdir()
- website
Bookmarks