note 108230 deleted from function.passthru by sp
| From: | sp@php.net | Date: | Mon, 16 Apr 2012 07:48:20 +0000 |
| Subject: | note 108230 deleted from function.passthru by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187173@lists.php.net to get a copy of this message | ||
Note Submitter: Izzy
----
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.