Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 01-17-2008, 01:53 PM PDFlib Lite and PHP
GBG
GBG's Avatar
Average Talker

Posts: 26
Name: jack paris
Trades: 0
I am considering a project that would use PHP to place client information into a mySQL database. Once this data is obtained the information would then be placed into documents that would be printed. I understand that PHP can be used in conjunction with PDFlib to produce PDF documents. Has anyone used this combination (mySQL, PHP and PDFlib) who can share the results they had?

Also as a commercial license for PDFlib is rather pricey is PDFlib Lite suitable for this purpose? A tutorial I read indicated that PDFlib Lite is included with PHP installations of windows, although this doesn't seem to be the case. Maybe I'm missing something. If not can anyone patiently walk me through installing and configuring PDFlib Lite with PHP?
GBG is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-17-2008, 06:04 PM Re: PDFlib Lite and PHP
phpknowhow's Avatar
Skilled Talker

Posts: 83
Name: Colin
Location: USA
Trades: 0
I haven't messed around with it much but, take a look at:

http://us3.php.net/manual/en/ref.pdf.php
http://www.phpclasses.org/browse/package/3168.html

Hope that helps.
__________________

Please login or register to view this content. Registration is FREE
| Freelance PHP solutions for small to midsized projects |
Please login or register to view this content. Registration is FREE
phpknowhow is offline
Reply With Quote
View Public Profile Visit phpknowhow's homepage!
 
Old 01-19-2008, 12:13 AM Re: PDFlib Lite and PHP
GBG
GBG's Avatar
Average Talker

Posts: 26
Name: jack paris
Trades: 0
Quote:
Originally Posted by phpknowhow View Post
I haven't messed around with it much but, take a look at:

http://us3.php.net/manual/en/ref.pdf.php
http://www.phpclasses.org/browse/package/3168.html

Hope that helps.
Thank you Phpknowhow. Yes that is some help. So is this document which the manual points too. But I still have some problems. Specifically I cannot locate the file libpdf_php.dll which I need to place in the php/ext/ directory. Also just where do place the the contents of PHPlib folder from the installation download?
GBG is offline
Reply With Quote
View Public Profile
 
Old 01-20-2008, 11:02 AM Re: PDFlib Lite and PHP
GBG
GBG's Avatar
Average Talker

Posts: 26
Name: jack paris
Trades: 0
Ok silly me. The files contained ain the PDFlib Lite download are sourse not binary. I downloaded an evaluation copy of PDFlib in binary form and promptly found the the libpdf_php.dll file. I am still having problems. When I run phpinfo() I get no information about pdfs. I think this might have something to do with the extensions_dir setting in php.ini. It is set at entensions_dir="./" which I understand to mean the libpdf_php.dll file should be in the same director as the php.in file (C:/php). Is this correct? Any other suggestions?
GBG is offline
Reply With Quote
View Public Profile
 
Old 01-20-2008, 11:43 AM Re: PDFlib Lite and PHP
phpknowhow's Avatar
Skilled Talker

Posts: 83
Name: Colin
Location: USA
Trades: 0
Quote:
Originally Posted by GBG View Post
It is set at entensions_dir="./" which I understand to mean the libpdf_php.dll file should be in the same director as the php.in file (C:/php). Is this correct?
Yes. You must place the dll in the extension directory. You must also, under Dynamic Extensions in php.ini, remove the ; before or add the line:
Code:
extension=libpdf_php.dll
__________________

Please login or register to view this content. Registration is FREE
| Freelance PHP solutions for small to midsized projects |
Please login or register to view this content. Registration is FREE
phpknowhow is offline
Reply With Quote
View Public Profile Visit phpknowhow's homepage!
 
Old 01-20-2008, 11:45 PM Re: PDFlib Lite and PHP
GBG
GBG's Avatar
Average Talker

Posts: 26
Name: jack paris
Trades: 0
Quote:
Originally Posted by phpknowhow View Post
Yes. You must place the dll in the extension directory. You must also, under Dynamic Extensions in php.ini, remove the ; before or add the line:
Code:
extension=libpdf_php.dll
Ok I've added the extension=lbpdf_php.dll to php.ini line. Still no PDF section appears when I run phpinfo(). I also tried running some php files using PDFlib in my browser, as I was uncertain what to look for in the phpinfo() page. I think it would have it's own section heading. Anyway, the files would not run.

I also changed tried C:/php/ext for the extensions_dir. I have place the libpdf_php.dll in both the C:/php and the C:/php/ext folders. Still nothing.

I think I'll put this away for a day and then come back. In the meantime if anyone has any further suggestion I would appreciate it.
GBG is offline
Reply With Quote
View Public Profile
 
Old 01-23-2008, 10:40 PM Re: PDFlib Lite and PHP
GBG
GBG's Avatar
Average Talker

Posts: 26
Name: jack paris
Trades: 0
After putting this project aside for a couple of days I came back to it today. I promptly saw the problem. In the php.ini file I had entered "extension=libpfd_php.dll" and not the proper "extension=libpdf_php.dll". Thanks again for your help phpknowhow. It worked just fine with that correction.
GBG is offline
Reply With Quote
View Public Profile
 
Old 02-17-2008, 08:35 PM Re: PDFlib Lite and PHP
Junior Talker

Posts: 1
Name: Philip Clarke
Trades: 0
PDFlib needs a license for the kind of project you are talking about. Probably the only alternative is http://fpdf.org which is open source (freeware license), very stable and well documented, depending on the project something of mine might be suitable at http://deebee.eu

Philip.
bouncing_ltd is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PDFlib Lite and PHP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26894 seconds with 12 queries