executing a java app from a php script
| From: | George Pitcher | Date: | Mon, 14 Jun 2004 14:10:26 +0000 |
| Subject: | executing a java app from a php script | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-23978@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to do a bit of java execution as part of a php routine and the
following just doesn't work:
<?php
$cover = "c:\\javatest\\44438.pdf";
$cover_fin = "c:\\javatest\\44438_fin.pdf";
$cover_enc = "c:\\javatest\\44438_enc.pdf";
$docname = "c:\\javatest\\Lovejoy1.pdf";
$cmd = "java -cp C:\\j2sdk1.4.2_04\\jre\\lib\\itext.jar
com.lowagie.tools.concat_pdf ".$cover." ".$docname." ".$cover_fin;
$temp = passthru($cmd);
?>
Even adding tha path to 'java' doesn't help.
This command works fine from the command line. It adds two pdf files
together. If I can get this to work, I'll also add the encryption routine.
Any ideas
George in Oxford