RE: [PHP-WIN] Tough decision ASP or PHP
| From: | Charles P. Killmer | Date: | Mon, 16 Dec 2002 23:03:26 +0000 |
| Subject: | RE: [PHP-WIN] Tough decision ASP or PHP | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-17460@lists.php.net to get a copy of this message | ||
Old topic, but I finally fixed my issue(s). In case anyone else is
having trouble with PDFs and IE.
I had two issues that were preventing PDFs to be dynamically created
with PHP.
First:
I was using sessions to ensure the user should see this pdf. Using
sessions caused three additional headers to be sent.
Expires: Sun, 15 Dec 2002 01:33:27 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
precheck=0
Pragma: no-cache
This caused some kind of problem with IE.
Solution: session_write_close() before I send the headers.
Second:
I was using gzip as the output handler. Again IE didn't like to receive
pdfs gziped.
Netscape didn't have any trouble with either of these issues. :)
Needless to say I am happy that I don't have to use ASP. :)
Charles Killmer
-----Original Message-----
From: Asendorf, John [mailto:JAsendorf@lcounty.com]
Sent: Thursday, November 07, 2002 1:42 PM
To: Charles P. Killmer; php-windows@lists.php.net
Subject: RE: [PHP-WIN] Tough decision ASP or PHP
I'm filling out form PDFs on the fly with IIS and FDF without any
problems... I don't know if that's what you mean by "creating PDF's"
but if
this ( http://www.lcounty.com/lchd/record_search/ )
is what you're
looking
for, (enter a name like smith then click on one of the application
request
icons) then you should be fine.
John
---------------------
John Asendorf - jasendorf@lcounty.com
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
> -----Original Message-----
> From: Charles P. Killmer [mailto:charlesk@netgaintechnology.com]
> Sent: Thursday, November 07, 2002 12:57 PM
> To: php-windows@lists.php.net
> Subject: RE: [PHP-WIN] Tough decision ASP or PHP
>
>
> Thanks for all the great feedback. IIS is probably a requirement.
>
> The problem with PHP and PDFs is when php has to send the
> headers for a PDF. IIS seems to get in the way. Does anyone
> have a workaround for sending headers though PHP and IIS?
>
> Charles
>
> -----Original Message-----
> From: Maxim Maletsky [mailto:maxim@php.net]
> Sent: Thursday, November 07, 2002 12:00 PM
> To: Charles P. Killmer
> Cc: php-windows@lists.php.net
> Subject: Re: [PHP-WIN] Tough decision ASP or PHP
>
>
>
> "Charles P. Killmer" <charlesk@netgaintechnology.com> wrote... :
>
> > I have to start building a a web site. And it needs to be
> very stable. It will be creating a lot of pdf's on the fly
> also. The problem that I have had with php creating pdfs is
> that IIS sends a connection: close header. This makes the
> pdfs very unreliable.
>
> I saw some of our code working on IIS and PDFs were just fine. This
> depends though. but, there are always work arounds and IIS is not any
> easier either.
>
> >
> > I am guessing that the isapi version of php would resolve
> this issue. Though the isapi version still has stability issues.
>
> I think so.
>
> > I hate to asp but am thinking that I may have to simply due
> to stability.
>
> Think also about the stability in the long run - ASP needs more
> maintainance than PHP, even on IIS.
>
>
>
> --
> Maxim Maletsky
> maxim@php.net
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>