note 20387 deleted from function.header by alindeman

From: Date: Tue, 02 Apr 2002 21:46:28 +0000
Subject: note 20387 deleted from function.header by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-28515@lists.php.net to get a copy of this message
When header() is used as the redirect (with Location: ), headers cannot be sent after sending anything to client (this could be changed, but... don't care :)) You may use my function redirecting between sites with no mercy for headers ;). It's based not only on PHP. function redirect ($url) { echo '<SCRIPT TYPE="javascript">'; printf("window.location.href='%s'",$url); echo '</SCRIPT>'; exit; }

« previous php.notes (#28515) next »