Re: How to access a program outside of PHP?
| From: | Raditha Dissanayake | Date: | Thu, 11 Sep 2003 00:47:59 +0000 |
| Subject: | Re: How to access a program outside of PHP? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162236@lists.php.net to get a copy of this message | ||
I meant to do this:
$szPipe = `/htdocs/gs -q
-dNOPAUSE -dBATCH -sDEVICE=pdfwrite
-sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf
/htdocs/Sep08-113523.pdf`;
Adam Douglas wrote:
-- http://www.radinks.com/upload Drag and Drop File Uploader.Backticks is simply the ` sign (usually the character above the tab). Popularly know asOhhh okay. Well if you mean to do this, $szPipe = popen(`/htdocs/gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf /htdocs/Sep08-113523.pdf`, "r");. This does not seem change anything. If I do this with the system() example, I get "Warning: system(): Cannot execute a blank command in /htdocs/index.php on line 14".hair on the earin my country :-) for example if you want to invoke ls from php you just type $result =ls; hey presto the output from ls is now in your $result variable.