Bug #14701 Updated: Execute program
| From: | imajes@php.net | Date: | Wed, 26 Dec 2001 23:26:05 +0000 |
| Subject: | Bug #14701 Updated: Execute program | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-75064@lists.php.net to get a copy of this message | ||
ID: 14701
Updated by: imajes
Reported By: ngotau@hotmail.com
Old Status: Open
Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows2000
PHP Version: 4.1.0
New Comment:
What you are describing is normal behaviour.
The way exec() works is that it executes the first argument, and then returns all the output to the
second argument as an array. Finally, any status the command returns is sent to the third argument,
if specified.
You may find these pages informative:
http://www.php.net/manual/en/function.exec.php
http://www.php.net/manual/en/ref.array.php
Previous Comments:
------------------------------------------------------------------------
[2001-12-26 12:47:58] ngotau@hotmail.com
I tried to exec simple program like as :
exec("dir C:",$results,$status)
but the $results return [Array] with out any string .
and $status return 0 .
How I can handle result ?
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14701&edit=1