note 86551 added to function.exec

From: Date: Thu, 23 Oct 2008 14:54:11 +0000
Subject: note 86551 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-145642@lists.php.net to get a copy of this message
Hi guys, i just wanted to ask a question about exec(). We have a problem here in the company I work for. Can somebody give me more inforamtion about the third parameter of exec() - $return_var. What value is returned if the execution was successful ? In my case it seems to be an integer with the value of 1. But one of my colleagues claims that on his computer the value is either untouched or 0. Here is the code snippet. ...... $return_i = 0; exec("$command_s", $output_a, $return_i); ...... On my computer the value of $return_i after exec is 1. Is it possible this to be different on his ??? Thanks in advance Martin Dobrev ---- Server IP: 221.194.139.225 Probable Submitter: 141.76.186.3 ---- Manual Page -- http://www.php.net/manual/en/function.exec.php Edit -- https://master.php.net/note/edit/86551 Del: integrated -- https://master.php.net/note/delete/86551/integrated Del: useless -- https://master.php.net/note/delete/86551/useless Del: bad code -- https://master.php.net/note/delete/86551/bad+code Del: spam -- https://master.php.net/note/delete/86551/spam Del: non-english -- https://master.php.net/note/delete/86551/non-english Del: in docs -- https://master.php.net/note/delete/86551/in+docs Del: other reasons-- https://master.php.net/note/delete/86551 Reject -- https://master.php.net/note/reject/86551 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#145642) next »