PDFlib Install Nightmares

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Whereoware
Forum Newbie
Posts: 3
Joined: Tue Mar 14, 2006 9:25 am

PDFlib Install Nightmares

Post by Whereoware »

Well, I've done extensive searching on this topic all over and have yet to find an answer (or anyone willing to help me, for that matter).

The system:
Dell PE850 w/Red Hat Ent. Linux 3 ES
PHP 4.3.11
PDFlib Lite 6.0.3

So the directions say for PHP > 4.3.9, to install using pear install pdflib, but I get an error saying that it needs PDFlib > 3.x. So I downloaded and built PDFlib Lite, and used that in the install. pear installs pdflib successfully.

And nothing. It doesn't show up in phpinfo and my scripts don't work. I've seen that many recommend FPDF for this kind of application, but unfortunately, I have to port existing code to this new server and rewriting for a new module is simply not an option.

I get the feeling I'm just missing one simple thing here, but I can't find it. Can anybody here help me?

Thanks,
Scott
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

I've only installed PDFLib 5, and we had to compile it into PHP, rather than install it as an external module.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Whereoware
Forum Newbie
Posts: 3
Joined: Tue Mar 14, 2006 9:25 am

Post by Whereoware »

Thanks Pickle. I had thought about trying to go back a version on PDFlib and compile into PHP. I tried it with 6 and it gave me all kinds of grief. I'll give this a try and let you know if I have better luck.

Scott
Whereoware
Forum Newbie
Posts: 3
Joined: Tue Mar 14, 2006 9:25 am

Crazy

Post by Whereoware »

So I finally got it installed.

I had to roll back to PHP 4.3.4, and installed PDFlib 5.0.4p1. I probably should have done this to begin with because the server that we're porting from was running 4.3.4. Apparently, 4.3.11 doesn't really play too well with PDFlib no matter the version.

Thanks again Pickle for the suggestion...one pickle to another.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Good to hear. My server actually uses 4.3.3 and PDFLib 5.0.1. You should be good to go now.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply