|
Posted by news@celticbear.com on 11/16/05 23:58
news@celticbear.com wrote:
> We're migrating our server from Apache 1.3.27 and PHP 4.1.2 to one with
> Apache 2.0.52 and PHP 4.3.9.
> We're using PDFlib 5.0.3. (Can't afford to upgrade right now.)
> Don't know if it matters, but we "installed" PDFlib on the new server
> ny rsync'ing the /usr/share/PDFlib-5.0.3p1-Linux/ folder over.
>
> Anyway, using variously placed echos in the PHP I've narrowed down the
> problem to the script stopping at:
> $pdf = pdf_new();
>
> No error, it just stops.
> php.net doesn't have any real info on the function. I did a newsgroup
> search and came up with a thread or two about it not working, but for
> seemingly unrelated issues.
>
> Any suggestions? If nothing else, some way to generate an error?
>
> Thanks for any advice!
> Liam
OK, new info.
I turned error reporting on in php.ini (DUH!) and now I see this:
Warning: dl(): pdf: Unable to initialize module Module compiled with
module API=20010901, debug=0, thread-safety=0 PHP compiled with module
API=20020429, debug=0, thread-safety=0 These options need to match in
/var/www/html/home/printingautomation/studio/card.bkk on line 1
Fatal error: Call to undefined function: pdf_new() in
/var/www/html/home/printingautomation/studio/card.bkk on line 2
Here are lines 1 and 2:
dl("libpdf_php.so");
$pdf = pdf_new();
Now, I copied the libpdf_php.so file over from the old server and kept
the same permissions and ownership.
I rsynced the /usr/share/PDFlib-5.0.3p1-Linux/ over and same ownership
and permissions.
What could the problem be?
Thanks for any help!
Liam
[Back to original message]
|