Page 1 of 1

Use exec() function in server?

Posted: Thu Sep 27, 2007 8:13 am
by besa
hello!

I'm actually having problems with using exec() function in PHP in the web server.
It seems that it doesn't execute any command at all.
For example when I use

exec("mkdir a");

in my local server everything it's OK.
But I can not do the same thing in the web server. It seems I don't have enough permissions
to do that.

Is there any way to get these permissions?

Thank you!

Posted: Thu Sep 27, 2007 8:27 am
by feyd
Likely, you have to switch the permissions so PHP can write and/or execute in the directory you are attempting to do this in, in your hosting provider's control panel .. or talk to them about it. There's mkdir(), just so you know.