note 108230 added to function.passthru
| From: | Izzy | Date: | Mon, 09 Apr 2012 20:36:02 +0000 |
| Subject: | note 108230 added to function.passthru | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187032@lists.php.net to get a copy of this message | ||
houston_roadrunner, that is not passthru() being picky - your first example is sending an invalid
command to the shell:
$ 'lp -d /var/www/BE2/java2/deliveryticket/store/filename'
versus
$ lp -d /var/www/BE2/java2/deliveryticket/store/filename
The single quotes are included, which makes the shell look for a program with that entire line as
the name, instead of just 'lp' with a series of arguments.
----
Server IP: 69.147.83.197
Probable Submitter: 216.198.71.77
----
Manual Page -- http://www.php.net/manual/en/function.passthru.php
Edit -- https://master.php.net/note/edit/108230
Del: integrated -- https://master.php.net/note/delete/108230/integrated
Del: useless -- https://master.php.net/note/delete/108230/useless
Del: bad code -- https://master.php.net/note/delete/108230/bad+code
Del: spam -- https://master.php.net/note/delete/108230/spam
Del: non-english -- https://master.php.net/note/delete/108230/non-english
Del: in docs -- https://master.php.net/note/delete/108230/in+docs
Del: other reasons-- https://master.php.net/note/delete/108230
Reject -- https://master.php.net/note/reject/108230
Search -- https://master.php.net/manage/user-notes.php