RE: [PHP] Problem using META tag refresh for page re-directs

From: Date: Fri, 23 Feb 2001 00:08:35 +0000
Subject: RE: [PHP] Problem using META tag refresh for page re-directs
Groups: php.general 
Request: Send a blank email to php-general+get-41244@lists.php.net to get a copy of this message
Thanks, Chris. This touches on another problem. Have you tried this with session cookies disabled in your browser? Can you pass the session ID using the header function? I can't seem to, but I *can* pass it using SID appended to the URL in the META tag. This is one reason I wanted to stay with the META refresh method, if possible, so the site still works for people with cookies disabled. Thanks, again, I will play with this. Kirk ----------------- Chris Lee replied: if you have output buffering on in php.ini output_bufffering = on cobine this with <?php header("Location: http://$SERVER_NAME/index.php"); exit(); ?> and youve got a great cobination, zero html will be sent to the browser, just the header, the browser will refresh for you. try it, works better then meta tags. ""Johnson, Kirk"" <kjohnson@zootweb.com> wrote in message news:01A4B59FD1EBD311838100A0C98BE0D9AD5769@chef.zootweb.com... > I have been using the code below to do my page redirects for a year and a > half with good results. Recently, some users have reported to me that the > actual code is being partially displayed to the screen, and the re-direct is > not occurring. It is as if the server stops serving the page before it is > complete. Sometimes the problem can be corrected by the user just doing a > manual refresh in their browser. Is anyone else that uses META tag > re-directs having this problem? Anyone know what the solution might be? > > > echo("<HTML><HEAD><META HTTP-EQUIV=\"refresh\" CONTENT=\"$delay;url=$url\">< > /HEAD><BODY BGCOLOR=#ffffff>$message</BODY></HTML>");

« previous php.general (#41244) next »