ID: 14701 Updated by: imajes Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]