Forum How do I...?

Having problems with new install (8.1)

Snerf
$prince = new Prince('/usr/lib/prince/bin');
$prince->addStyleSheet("/usr/lib/prince/style/fonts-new.css");
$prince->setLog("/home/eliteima/elite/logs/prince.log.txt");
$prince->convert2($htmlFile, $outputPDF);

$htmlFile and $outputPDF are valid files.

The PDF file is not created, and nothing is being written to prince.log.txt.

Why would it not write anything to the log file?

Doing this from the console,

/usr/lib/prince/bin/prince 1.html --debug --style=/usr/lib/prince/style/fonts-new.css --output=1.pdf

and this works fine, and creates the PDF file.

Thanks
mikeday
The path should point directly to the Prince binary, like this:
$prince = new Prince('/usr/bin/prince');

or:
$prince = new Prince('/usr/lib/prince/bin/prince');