php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9476 can't use 'system', 'passthru',... from apache. works when direct php.exe
Submitted: 2001-02-27 06:25 UTC Modified: 2001-04-27 12:57 UTC
From: avihpit at yahoo dot com Assigned:
Status: Closed Package: Program Execution
PHP Version: 4.0.4pl1 OS: w2k
Private report: No CVE-ID: None
 [2001-02-27 06:25 UTC] avihpit at yahoo dot com
php 4.0.4 AND php 4.0.4pl1
apache 1.3.14
w2k
both as cgi and as apache module

program execution functions don't work. ("warning.. can't fork... ")

when using direct php.exe to run the file 
(i.e. \php\php dir.php) works fine
where dir.php contains:
<?php passthru("dir"); ?>

regards
avi

ps
it would have been more appropriate to return "file not found" in php 404, and "access forbidden" in php 403 :)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-27 12:57 UTC] dbeu@php.net
fixed in cvs, wait for 4.0.6
please note that dir isn't a real command try something like

passthru(getenv("COMSPEC") . " /c dir");
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Jun 19 10:01:27 2019 UTC