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!
Use exec() function in server?
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
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.