Help with PDFLIB
| From: | Scott Schultz | Date: | Tue, 08 May 2001 20:59:55 +0000 |
| Subject: | Help with PDFLIB | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-3076@lists.php.net to get a copy of this message | ||
Hi, Y'all. Count me as one of the many who have had
trouble with pdflib, sthough my problem seems to be
a bit different.
In a nutshell, I can't seem to make PHP recognize that
the pdflib is there.
Configuration is PHP v 4.0.5, Apache 1.3.14, pdflib 4.0.0.
Pdflib compiles and install correctly. At one point there
was a pdflib installed as part of the SuSE installation,
but I removed it once I found it and I then did a make clean
on Apache, PHP and pdflib and recompiled and re-installed
everything.
PHP compiles and installs. The configuration as reported by
phpinfo is:
'./configure' '--with-apache=/usr/local/src/apache_1.3.14'
'--enable-discard-path' '--with-config-file-path=/usr/local/lib'
'--enable-sigchild'
'--enable-ctype' '--with-cybercash=/usr/local/src/mck-3.2.0.4-linux'
'--with-gdbm' '--with-ndbm' '--enable-ftp'
'--with-mysql=/usr'
'--with-pdflib=/usr/local/lib' '--with-zlib-dir=/usr/local/lib'
'--with-jpeg-dir=/usr/local/lib' '--with-png-dir=/usr/local/lib'
'--with-tiff-dir=/usr/local/lib' '--enable-sockets' '--with-regex=php'
'--enable-sysvsem' '--enable-sysvshm' '--with-zlib'
'--with-gnu-ld'
Note that this shows that PHP SHOULD know that the pdf functions
are compiled in. Changing the pdflib path causes Apache to fail
to compile due to missing PDF_* functions; further evidence that
the pdflib library is, indeed, being linked into Apache and PHP.
When run on the sample included with pdflib, the following error
is generated:
Fatal error: Call to undefined function: pdf_new() in
/usr/local/apache/htdocs/cjhunter/test/pdf/hello.php on line 5
Trying to bypass pdf_new() and going doing the fopen(),pdf_open()
trick just results in pdf_open() being the unknown function.
I can see that the module source code knows about pdf_open,
and I can see that the pdf module is compiled into PHP and
Apache. I just can't see why I can't call any of the pdflib
functions.
Any ideas?
Scott Schultz
scott@cjhunter.com