can't "exec" a FOP command from PHP
| From: | Daniel Cher | Date: | Wed, 09 Apr 2003 04:01:19 +0000 |
| Subject: | can't "exec" a FOP command from PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-142997@lists.php.net to get a copy of this message | ||
I'm trying to use FOP (see http://xml.apache.org/fop/running.html) to
convert XSL-FO to PDF on the fly.
In the command line, works fine:
> /htdocs/www/fop-0.20.5rc2/fop.sh -fo
/htdocs/www/fop-0.20.5rc2/examples/fo/basic/border.fo -pdf
/htdocs/www/projects/csa/scoring/reports/simpletest.pdf
However, in a PHP script, I get no output, as if the command is not
executing. Using Linux.
$res1 = shell_exec("/htdocs/www/fop-0.20.5rc2/fop.sh -fo
/htdocs/www/fop-0.20.5rc2/examples/fo/basic/border.fo -pdf
/htdocs/www/projects/csa/scoring/reports/simpletest.pdf ");
What am I doing incorrectly?
Daniel