Al Dancer wrote:
Hello,

I've installed PHP-Java-Bridge 5.2.2
and would like to create a PDF file using FOP and PHP.
OS: Solaris 10
FOP: version 0.95
PHP: version 5.2.6
Java: jdk1.6.0
Apache: Server Version: Apache/2.2.9

when I run fop from the command line, the PDF file was created.
./fop test.fo <http://test.fo> test.pdf

But when I created a PHP file, let's say mytest.php as following:
---------------------------
<?php
require_once ("XML/fo2pdf.php");
$pdf = new XML_fo2pdf( );
$pdf->tmpdir = "/tmp";
$pdf->run("/tmp/simple.fo", "/tmp/simple.pdf");
$pdf->printPDF();
$pdf->deletePDF();
?>
---------------------------

I could not see any PDF file in my browser after checking the PHP page
http://my-server/mytest.php

The script exited after executing $pdf->run("/tmp/simple.fo", "/tmp/simple.pdf"); without any errors or warning (I've checked the apache log file, php-java-bridge.log file,phperror logfile)

I have tried the runFromFile and runFromString (in fo2pdf.php) methods they behave the same way.

My question is : is FOP 0.95 working with PHP-Java-Bridge 5.2.2 and PHP 5.2.6, Java_1.6.0 ?
Any help would be appreciated.

BTW, the same script (PHP) is working with:
FOP: 0.20.4, PHP-Java-Bridge-4.0.8a, Java jdk1.5.0_06 (I mean the PDF file has been created).

Permissions, file paths, or $PATH errors would be the usual
suspects.

  BugBear

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to