Forum How do I...?

Determining Number of Pages

epanagio
After reading a previous entry, I tried first to get that particular example to work.

I downloaded prince.php from the link provided and the script stops with:

Failed:

Array ( )

The above comes from:

if(!$prince->convert_string_to_passthru($html, $errors, $data)) {
echo "Failed:<br /><br />";
print_r($errors);
exit();
} else
var_dump($data);


The log file is empty and php does not generate any errors or warnings.

How do I get this to work?
  1. page_count-1.php1.3 kB
mikeday
Can you successfully run Prince manually from the command-line?

Check that the executable path is specified correctly in the PHP script.
jim_albright
When do you need the number of pages?

Jim Albright
Wycliffe Bible Translators