Hope this help. http://zerocaffe.in/2008/10/04/linux-commands-output-in-php/ For running commands that need root level access, php wont be of a lot of help.
Btw are you executing the php code through web or through CLI? On Mon, Feb 2, 2009 at 5:35 PM, shwetali goud <[email protected]>wrote: > I am not able to execute some shell commands through PHP code and also > service commands > (for example commands like: "service squid start/restart.stop","php > <program > name.php>" ) throgh a PHP program >

