Creating PDFs in PHP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hello all,

I'm using 1 and 1 to host a website.  I'm needing to create a PDF file
dynamically using data from one of my MySQL databases, but it looks
like 1 and 1 doesn't support the PDFlib library.  I've also tried using
some third-party software that can connect to a database over the
network, but 1 and 1 doesn't allow connections to their databases
outside of 1 and 1 sites.

Does anyone know of any other options I have?  For example, is there a
way I could somehow include the PDFlib library in my web space and
reference it from my PHP scripts or does it have to be compiled in?

Thanks in advance!

Re: Creating PDFs in PHP

First GOOGLE IS YOU FRIEND. Now recite that 10 times and continue on.

1and1 dose not allow connection to your database from any other source
then their web servers (not sure if they restrict it also to only where
you site is being hosted, I should try that though). This is simply for
security and a good policy in my mind.

As for you PDF problem you need to find a PDF creator that is just
users a base class (that is said really badly but have a look at the
links below). Hopefully one of the following will do what you need:

(first 2 links on a Google search with "pdf php")

Re: Creating PDFs in PHP

On 28 Dec 2006 07:34:23 -0800, wrote:

Quoted text here. Click to load it

So is proofreading.   :-)

Not that _I_ ever screw up.........

Re: Creating PDFs in PHP schrieb:

Quoted text here. Click to load it

Especially this lib works nice and doesn't require to know much about

I'd propose to start using this lib.

Re: Creating PDFs in PHP

Thanks for the suggestions.  Just to let everyone know, both links
posted are for the same PDF creator and it worked perfectly.

By the way, I know Google is my friend... but I'd rather see what
people are using and recommend.


On Dec 28, 8:34 am, wrote:
Quoted text here. Click to load it

Re: Creating PDFs in PHP

Bryan wrote:
Quoted text here. Click to load it

fPDF ( ) it's great too.

Re: Creating PDFs in PHP

I have been using FPDF mainly because it has available for it FPDI
which lets you include other PDFs in FPDF (for filling PDF forms, etc.)



Site Timeline