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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to