|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-11-06 14:05 UTC] igor dot makarov at mail dot ru
Description:
------------
I make a code:
system('ls -gfjgsfl');
and I nothing see then as I read in manual: "Execute an external program and ->display output<-"
In this situation then I use wrong unix command the system() function not worked propertly.
I think what it's will be solved in next version...
I do not know how it's work under PHP5.
P.S.
With passthru() and exec() functions same problem :o(
Reproduce code:
---------------
<?php
system('ls -gfjgsfl');
//nothing see
$_out = system('ls -gfjgsfl');
//still nothing see
?>
Expected result:
----------------
/bin/ls: invalid option -- j
Try `/bin/ls --help' for more information.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 12:00:02 2025 UTC |
Errors are written to error_log by default, so check out your Apache's error log for them. If you really want to see error messages when using system() - redirect stderr to stdout: <?php system ("ls -j 2>&1"); ?>