Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > what causes this php output?...

what causes this php output?...
Thread Tools
Registered User
Join Date: Sep 2002
Location: New York City
Status: Offline
Reply With Quote
Dec 1, 2003, 11:39 AM
 
Hi. I've got a PHP page that occasionally outputs this text at the top of the page:

HTTP/1.1 200 OK Date: Mon, 01 Dec 2003 23:34:45 GMT Server: Apache/1.3.28 (Darwin) PHP/4.3.4 X-Powered-By: PHP/4.3.4 Set-Cookie: PHPSESSID=8bb4a5c187264476a3d6ddd8d3a688ac; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Keep-Alive: timeout=15, max=97 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html 106f

Does anyone know what PHP call could possibly output this stuff? It didn't happen in the past. I recently upgraded to PHP4.3.4 and now it shows this stuff, but not always.

Thanks for any info.

-Ben
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Dec 1, 2003, 11:41 AM
 
That looks like a set of HTTP headers. Are you perhaps doing something with output buffering?
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Registered User
Join Date: Sep 2002
Location: New York City
Status: Offline
Reply With Quote
Dec 1, 2003, 11:55 AM
 
so far it only seems to happen in Safari
It does not happen in IE or Netscape...yet (hoping it doesn't happen in the future)


Originally posted by Millennium:
That looks like a set of HTTP headers. Are you perhaps doing something with output buffering?
Thanks for the idea. I agree that it is the HTTP headers, but I don't konw why they would be shown to the user. I'm doing some error checking and then setting the Header Location to another page if some test fails...for example, if some needed param is not there, then go to an error page.

The header information is only shown the 1st time the page is loaded. After that, it isn't shown at all.

Thanks in advance for any ideas.

-Ben
(Last edited by bens1901; Dec 1, 2003 at 12:57 PM. )
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Dec 2, 2003, 03:41 AM
 
Originally posted by bens1901:
so far it only seems to happen in Safari
It does not happen in IE or Netscape...yet (hoping it doesn't happen in the future)




Thanks for the idea. I agree that it is the HTTP headers, but I don't konw why they would be shown to the user. I'm doing some error checking and then setting the Header Location to another page if some test fails...for example, if some needed param is not there, then go to an error page.

The header information is only shown the 1st time the page is loaded. After that, it isn't shown at all.

Thanks in advance for any ideas.

-Ben
Are you using an old version of Safari? It was notorious for doing this in it's early stages, but I haven't seen that symptom for months now.
Computer thez nohhh...
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:29 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2