Hi;
I have tried everything and I cannot get this to work. I am using PHP 4.1.1 and PDFlib 4.0.2. I cannot get any of the PDFlib functions to work (fails on pdf_new() or worse, see below:
Here is what I have tried and the results:
1: I have tried recompiling php with --with-pdflib=no and added extension:libpdf_php.so after copying it into /usr/lib/php4 along with the other .so's. This resulted in the same error.
This apporach used the binary distribution.
2: Tried to copy the support files and run ./buildconf
This resulted in an error:
Unexpected token PHP_CHECK_LIBRARY (pdf,
in line ... of configure
when I tried to configure it. (trying to compile language bindings into PHP).
3: Replaced the original files, tried to compile into PHP (--with-pdf=/usr/src/pkg/pdflib-4.0.2/)
No configuration or compile errors. But it does not work. (undefined function pdf_new.) This was from source.
4: Tried --with-pdf=/usr/local/lib
Same result.
5: Tried --with-pdf=[binary directory]/bind/c
Same result.
I have tried everything, have read the manual sections relating to the PHP extensions, read the PDFlib manual, etc. to no avail. Please help!