note 60907 added to function.system
| From: | php-general at lists dot php dot net | Date: | Thu, 19 Jan 2006 23:02:21 +0000 |
| Subject: | note 60907 added to function.system | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-102124@lists.php.net to get a copy of this message | ||
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!
----
Server IP: 64.71.164.2
Probable Submitter: 128.255.163.203
----
Manual Page -- http://www.php.net/manual/en/function.system.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60907
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60907&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60907&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60907&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60907&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60907&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60907&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60907&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60907&report=yes
Search -- http://master.php.net/manage/user-notes.php