Re: How to access a program outside of PHP?
| From: | Raditha Dissanayake | Date: | Thu, 11 Sep 2003 14:15:14 +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-162299@lists.php.net to get a copy of this message | ||
btw have you checked if you are in safe_mode? in php.ini
error level can also be set in php.ini
my guess is that you have a problem in your chroot setup.
best regards
Adam Douglas wrote:
Mmm... okay. I tried that and nothing. Is there no way for me to determine what the problem is? Error message some place, log file, etc? I do not understand why this is not work. Even a simple example from the PHP manual on system() does not work.-- http://www.radinks.com/upload Drag and Drop File Uploader.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`;the tab).Backticks is simply the ` sign (usually the character abovepopen(`/htdocs/gs -qPopularly know asOhhh okay. Well if you mean to do this, $szPipe =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.-dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf /htdocs/Sep08-113523.pdf`, "r");. This does not seem changeanything. If Ido this with the system() example, I get "Warning: system():Cannot executea blank command in /htdocs/index.php on line 14".