PDF generation class not working in PHP5

Posted on 2007-10-18
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

    what about this one?


    LVL 40

    Assisted Solution

    What class are you using ? I use fpdf from

    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

    Easy Project Management (No User Manual Required)

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
    I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
    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…
    The viewer will learn how to count occurrences of each item in an array.

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now