#47582 [Opn->Bgs]: system(), passthru() do not work online, but work with command line
| From: | jani@php.net | Date: | Fri, 06 Mar 2009 10:42:01 +0000 |
| Subject: | #47582 [Opn->Bgs]: system(), passthru() do not work online, but work with command line | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-134462@lists.php.net to get a copy of this message | ||
ID: 47582
Updated by: jani@php.net
Reported By: liangc dot mu at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: RedHat Enterprise 5.2
PHP Version: 5.2.9
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2009-03-05 22:34:40] liangc dot mu at gmail dot com
Description:
------------
Basically, my test.php contains:
<?php
#$cmd="/usr/local/genome/gmap/gmap-2009-02-04/bin/gmap -v";
$cmd="/usr/local/genome/gmap/gmap-2009-02-04/bin/gmap -d
oryza_sativa_rap_4 -n 1000 -k 2000 -A -B 2 sample_chlamy.fasta.valid
>out";
system($cmd,$exeReturn);
#exec($cmd);
echo $cmd."<br/>";
echo $exeReturn."<br/>";
?>
(1) In command line, when I type "php test.php", I met success in
executing the gmap program and get the out result.
(2) However, through the web server, the system command is always not
executed.
I have another server that have the identical settings (such as the
same httpd.conf, php.ini), the test.php code can be executed
through the Internet and the command line.
Reproduce code:
---------------
<?php
#$cmd="/usr/local/genome/gmap/gmap-2009-02-04/bin/gmap -v";
$cmd="/usr/local/genome/gmap/gmap-2009-02-04/bin/gmap -d
oryza_sativa_rap_4 -n 1000 -k 2000 -A -B 2 sample_chlamy.fasta.valid
>out";
system($cmd,$exeReturn);
#exec($cmd);
echo $cmd."<br/>";
echo $exeReturn."<br/>";
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47582&edit=1