note 71196 added to function.header
| From: | mailforlindsay at gmail dot com | Date: | Wed, 15 Nov 2006 22:00:59 +0000 |
| Subject: | note 71196 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119762@lists.php.net to get a copy of this message | ||
Careful! This line of code cause IIS to crash on PHP 4.3.4 and maybe others.
<?
header("location:/currentfile.php");
// forward slash causes crash
// currentfile.php is the exact basename of this file
?>
Learned this the hard way.
----
Server IP: 66.207.199.35
Probable Submitter: 132.205.126.84
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- https://master.php.net/note/edit/71196
Del: integrated -- https://master.php.net/note/delete/71196/integrated
Del: useless -- https://master.php.net/note/delete/71196/useless
Del: bad code -- https://master.php.net/note/delete/71196/bad+code
Del: spam -- https://master.php.net/note/delete/71196/spam
Del: non-english -- https://master.php.net/note/delete/71196/non-english
Del: in docs -- https://master.php.net/note/delete/71196/in+docs
Del: other reasons-- https://master.php.net/note/delete/71196
Reject -- https://master.php.net/note/reject/71196
Search -- https://master.php.net/manage/user-notes.php