Page 1 of 1

problem with 'exec()' methd

Posted: Thu Apr 21, 2005 12:35 am
by rumee002
i am facing problem with the 'exec' and 'system' function in php4.They can only execute a limited number of shell commands.such as - ps,ls etc.

Is there any way so that i can use exec to run a process or kill a process in linux.

Posted: Thu Apr 21, 2005 2:21 am
by Chris Corbyn
Is this your server, a shared server, or a paid dedicated server?

Shared servers you shouldn't be trying to kill anything and it would be obvious why it was blocked. Otherwise, the problem is a system level issue, not PHP itself. PHP itself needs to have the appropriate system level permissions :-)