note 60907 deleted from function.system by jome
| From: | jome@php.net | Date: | Thu, 19 Jan 2006 23:32:06 +0000 |
| Subject: | note 60907 deleted from function.system by jome | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-102127@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Hello everyone,
I am using the php system call functionality to call a script, for the belowing code. It works for
hostname and date. However, it didn't work for the third one.
<?php
echo exec('hostname');
echo exec('date');
echo exec("/usr/globus/gt4/bin/grid-cert-request -cn php -dir /usr/local/apache2/htdocs
-nopassphrase -force");
?>
Do you have any ideas? Actually , I also tried popen().
<?php
$handle = popen( "/usr/globus/gt4/bin/grid-cert-request -cn zhou -dir /usr/local/apache2/htdocs
-nopassphrase -force","r");
echo $handle;
pclose($handle);
?>
It didn't work as well. Any suggestions will be highly appreciated!