problem with 'exec()' methd

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rumee002
Forum Newbie
Posts: 1
Joined: Thu Apr 21, 2005 12:28 am

problem with 'exec()' methd

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 :-)
Post Reply