system(), exec(), etc.
Moderator: General Moderators
system(), exec(), etc.
I am having trouble getting any of the system commands working (including the backticks even when I do just a simple 'ls' command). I have checked the safe_mode settings and they are off. The only thing I can think of, is that these commands only work if the creater of the script is root (although I doubt this is the case). Any help would be greatly appreciated!
I tried a few things (some things worked some didn't). Ultimately I want a couple things to work:
1) I want to be able to create and delete directories (both of which don't work right now). However, this can be done using the mkdir() and rmdir() functions within php, so this isn't such a big problem.
2) I want to run a script that has execute permissions for all. I tried running it and it won't work, and I am not sure why (I did and 'or die()' statement on the system command and it did in fact die so I know it isn't running)
1) I want to be able to create and delete directories (both of which don't work right now). However, this can be done using the mkdir() and rmdir() functions within php, so this isn't such a big problem.
2) I want to run a script that has execute permissions for all. I tried running it and it won't work, and I am not sure why (I did and 'or die()' statement on the system command and it did in fact die so I know it isn't running)