re: exec()
| From: | Ubaidul Khan | Date: | Wed, 06 Dec 2000 14:27:39 +0000 |
| Subject: | re: exec() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-28900@lists.php.net to get a copy of this message | ||
I was trying to use the exec() function to execute a external unix command,
and store the output into an array, following is my syntax:
<?php
$httpd = exec("/usr/sbin/apachectl restart", $output);
$httpd;
echo $output;
?>
echo $output;
^
|
Does not produce any output.
Please help, if you know how to use the exec() function.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ubaidul Khan
Senior System Administrator
Library System and Technical Services
Wayne State University
Fax: 313-577-8720
Phone: 313-577-4008