php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4501 System does not return a string
Submitted: 2000-05-18 15:11 UTC Modified: 2000-05-22 04:21 UTC
From: bboett at erm1 dot u-strasbg dot fr Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Latest CVS (18/05/2000) OS: linux
Private report: No CVE-ID: None
 [2000-05-18 15:11 UTC] bboett at erm1 dot u-strasbg dot fr
 $query = "ls";
 //$result = passthru($query);
 $result = system($query);
 echo "<P>result is : $result\n";

launching this script issues immediately on the browser the result of the query, whilst the result-var stays empty....
i see no difference between passthru and system :( 
so is there any way i can get a grip on the result string of a shell-command?

BTW i use 4.0rc1-2 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-22 04:21 UTC] jimw at cvs dot php dot net
popen() is what you're after.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 21:01:33 2024 UTC