Web Hosting Talk







View Full Version : PDFLib


WebAssistUK
02-04-2003, 06:38 AM
Hi,

I'm trying to use PDFLib on my RaQ, I have PHP 4.12 I think it is installed on the server but it errors on the first command to initiate the PDF writer in my PHP code.

Does PDFLib have to be enabled??? If so, how do I enable it???

Pingouin
02-05-2003, 03:29 AM
What does the info page about your PHP say ? Does it underline a PDF lib module is there ? Get these infos to also precisely determine which PHP version you have and let us know.

WebAssistUK
02-05-2003, 03:59 AM
Direct from phpinfo()

PHP Version 4.1.2

Build Date: Mar 31 2002

Configure command:

'./configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs' '--with-gd' '--with-gettext=/usr' '--enable-safe-mode' '--with-config-file-path=/etc/httpd' '--with-exec-dir=/usr/bin' '--with-zlib' '--enable-magic-quotes' '--with-regex=system' '--with-ttf' '--with-db' '--with-gdbm' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-track-vars' '--enable-wddx=shared' '--enable-mm=shared' '--enable-xml' '--enable-ftp' '--disable-debug' '--with-libdir=/usr/lib' '--with-db3' '--with-interbase=shared' '--with-pgsql=shared' '--with-ldap' '--with-imap' '--with-curl=shared' '--with-pdflib=shared'

donlimpio
02-05-2003, 04:33 AM
i got the same problem when i installed php 4.1.2 from pkgmaster.
there is one hint on the ohgmaster site about this priblem.

libpdf module included (uncomment extension=libpdf_php.so in /etc/httpd/php.ini to activate)

so you have to add "extension=libpdf_php.so" in the php.ini

i hope this will work for you


Originally posted by WebAssistUK
Direct from phpinfo()

PHP Version 4.1.2

Build Date: Mar 31 2002

Configure command:

'./configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs' '--with-gd' '--with-gettext=/usr' '--enable-safe-mode' '--with-config-file-path=/etc/httpd' '--with-exec-dir=/usr/bin' '--with-zlib' '--enable-magic-quotes' '--with-regex=system' '--with-ttf' '--with-db' '--with-gdbm' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-track-vars' '--enable-wddx=shared' '--enable-mm=shared' '--enable-xml' '--enable-ftp' '--disable-debug' '--with-libdir=/usr/lib' '--with-db3' '--with-interbase=shared' '--with-pgsql=shared' '--with-ldap' '--with-imap' '--with-curl=shared' '--with-pdflib=shared'

WebAssistUK
02-06-2003, 05:59 AM
Cheers for the help, its working well now, just gotta suss out how to do all the PDF stuff now, managed to do a psuedo invoice last night and output to a pdf.

Anyone know how I can save the pdf and have it e-mail the customer each month or when they purchase something off the site??

Pingouin
02-06-2003, 06:12 AM
Well you now have to work with the system you have that generates orders and invoices (shopping cart ? Perl ?)
Was the invoice you created output to screen or to a file ? Basically it seems what you need is to save it to a file and then grab it there with another program, or save it to a public dir and send the link in an email.
More details on what you have and need are required here.