PDF generation class not working in PHP5

Posted on 2007-10-18
Medium Priority
Last Modified: 2013-12-13
We are having some problem in generating PDF file using PHP5 and MySQL-5. PDF file is not generating.

We are using PDF Generation Class. It is working on PHP4 but not working on PHP5. Is there any changes required in php.ini file for PHP5.

We made following changes in php.ini file for PHP5,
enable_dl                           On            On
disable_functions              no value    no value

But, still it is not working.
Question by:navtarainc
LVL 12

Accepted Solution

str_kani earned 1000 total points
ID: 20108758
what about this one?


LVL 40

Assisted Solution

by:Richard Quadling
Richard Quadling earned 1000 total points
ID: 21588952
What class are you using ? I use fpdf from http://fpdf.org.

I had to make a few changes to make this PHP5 E_STRICT safe, but nothing significant.

Can you show us some code that you are using to generate the PDF?

Are you getting any errors? Are you suppressing errors?

Try adding ...

ini_set('display_errors', 1);

at the top of your PDF generating script. See what errors it makes.

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month15 days, 6 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question