Re: Shell command in php script

From: Date: Tue, 28 Sep 2004 07:58:41 +0000
Subject: Re: Shell command in php script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-198045@lists.php.net to get a copy of this message
Vincent Fonteneau wrote:
Hi, I'm trying to find how to execute a shell command in a php script, I meen I would like for example to stop services like ssh or others in /etc/init.d with command stop and start it again. I've tried some commands without success, and I've missed something like script owner or group. I really don't know. Perhaps it sould be in php conf ? Is someone have any idea ? Thanks Vincent use one of these
<?php shell_exec('cmd'); exec('cmd'); // synonim to cmd ?> there a few more... but I can't remember which

« previous php.general (#198045) next »