note 11946 added to function.header.php

From: Date: Wed, 14 Mar 2001 20:19:15 +0000
Subject: note 11946 added to function.header.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12397@lists.php.net to get a copy of this message
People usualy use headers for redirection on their scripts. But what if something was already sent before you call a header? I usualt use a little js trick: echo"<html> <head> <script language=javascript> function reload() { var url; url = \"$PHP_SELF\"; document.location.href = url; } </script> <body onLoad=\"javascript:reload();\"> </body> </html>"; I hope this will help those people that keep asking this thing around php communities. http://www.php.net/manual/en/function.header.php

« previous php.notes (#12397) next »