Edit: From a post in this topic, found out that my problem wasn't what I thought it was, and ended up solving my problem in aonther topic:
https://www.unix.com/showthread.php?p...#post302076761
Hi, I'm not sure if this is a Unix problem or a PHP problem, but I'll see if anyone here knows.
So I have a PHP script that calls shell_exec('mkdir thefolder'); - for anyone who doesn't know php, shell_exec just throws a command at the command shell. "thefolder" is able to be created, BUT it is somehow created as read-only. When I click the file in Windows and try to uncheck the read-only, it won't let me. I tried deleting it through Unix, didn't work. The only way I could delete the folder was to use shell_exec('rm thefolder'); in PHP.
Now this makes no sense to me, shell_exec is just supposed to send a command to the Shell. calling 'mkdir thefolder' in Unix does not create it as read only, despite being the same command. As well, 'rm thefolder' does not work in the normal Unix, but the PHP script calls it fine.
I'm so confused. Any Ideas?
Thanks,
Graeme