Are you downloading these files over HTTPS://? Ed
-----Original Message----- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 10:24 AM To: CPT John W. Holmes; PHP General Subject: Re: [PHP] Sessions and headers > What errors, exactly? Can you show some examples? The errors are not PHP. They are from the browser trying to open the data being sent from the server (the HTML or binary data) in the appropriate program. eg, Acrobat for PDF, Word for DOC, Excel for XL. For this particular case, I'm using the following header call: header( "Content-Type: application/pdf" ); and I'm following it up with PDF binary data. As everyone well knows, this will cause Acrobat to start up and the data displayed therein. Well, if any headers are sent to the browser prior to the above header() call, the app fails to load up and your browser gives you an error. In this case, the error I am getting is as follows: "Internet explorer cannot download YOURFILENAME Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later." The offending function call that causes all this grief is "session_start()". When I comment out the call to session_start(), the PDF opens up just fine. When I leave the function call in, I get the above error. (And a quick note, I have trans-sid enabled) Since you need session_start() to start or resume a session and since that function call messes with any subsequent header() calls, I've not been able to use sessions in scripts that output data to Word, Acrobat, Excel, etc. and I need to do something about that. > I had problems like this with IE over SSL that was solved by changing the > session.cache_limiter. Does it work for other browsers at all or is it a PHP > error you're getting? It's a browser error I'm getting. And I get this problem on all browsers. thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php