note 83030 added to function.exec

From: Date: Wed, 07 May 2008 16:18:54 +0000
Subject: note 83030 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-139132@lists.php.net to get a copy of this message
If you attempt to call a script that is not executable (i.e. not chmod +x or chmod 755), then you'll get a return error of 126. <?php $output = array(); $return_var = 0; exec('foo.sh', $output, $return_var); echo $return_var; /* 126 */ ?> ---- Server IP: 64.71.164.2 Probable Submitter: 66.27.49.42 ---- Manual Page -- http://www.php.net/manual/en/function.exec.php Edit -- https://master.php.net/note/edit/83030 Del: integrated -- https://master.php.net/note/delete/83030/integrated Del: useless -- https://master.php.net/note/delete/83030/useless Del: bad code -- https://master.php.net/note/delete/83030/bad+code Del: spam -- https://master.php.net/note/delete/83030/spam Del: non-english -- https://master.php.net/note/delete/83030/non-english Del: in docs -- https://master.php.net/note/delete/83030/in+docs Del: other reasons-- https://master.php.net/note/delete/83030 Reject -- https://master.php.net/note/reject/83030 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#139132) next »