PHP + PDF

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • BeppeCosta

    #1

    PHP + PDF

    We decided to use output_handler = ob_gzhandler on one of our server,
    because it is very slow and this is the only option that keeps the old
    page on screen instead of clearing it before displaying the new one.

    With this configuration a problem arises in creating PDF docs to be
    displayed on fly, because IE asks for download instead of opening the
    pdf reader (while Netscape works fine).

    I've been told that this is a IE bug. However all of our user run IE
    and it should difficult to convince them to use another browser
    because IE is said to have a bug. Probably they would think that we
    programmers have a bug !!

    The documentation says that ini_set() allows to operate on
    output_handler parameter, than I thougt that a
    ini_set('output _handler','') before sending the pdf should solve the
    problem.

    It does not seem to work. The only way is to disable output_handler
    from php.ini.

    I've alredy posted on bug.php but it has been immediately classed as
    bogus without any investigation, because, they said, this is a IE bug.

    Can anybody help me to find a way to disable the output_handler only
    when we send the pdf.

    Thanks.

    gcosta@sidin.it

Working...