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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: avihpit at yahoo dot com
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 06:01:29 2024 UTC