plz help to convert php to pdf

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vivekshekar
    New Member
    • Jul 2008
    • 11

    #1

    plz help to convert php to pdf

    Hi,

    I have a query qith me. ppl plz help me to solve this.

    I wrote a php prog to generate a out put text file.

    The output is from database.

    now the problem is i coverted this output file to PDF and its working file...

    next time when i add something to database it is displaying over database, but

    in the PDF file it is not updating..

    It will update only when i comile the file in a terminal otherwise i a m not able to get that..

    And also once i come back and trying to visit the same pdf file again its not possible..


    so plz help in solving this problem.
  • rohypnol
    New Member
    • Dec 2007
    • 54

    #2
    It's probably because of your HTTP headers. The PDF probably updates correctly but your browser decides nothing has changed. Save the contents to a file in stead of streaming it directly to the browser and check the result. If the file looks OK, then your problem are the HTTP headers and you should check out the user comments on http://php.net/header related to caching.

    If I'm wrong, you might want to try to drop the "ppl plz," organize yourself a bit, try to avoid all those spelling errors ("qith" in stead of "with" ?) and re-write your question in a more technical manner so that we may understand what you need help with, without having to try and understand what you're writing. You could try to add A FEW lines of code, maybe the part that's doing the actual dump of the PHP file to the web server. This usually helps a lot.

    Regards,
    Tom

    Comment

    Working...