note 74959 added to function.header

From: Date: Sun, 06 May 2007 10:52:38 +0000
Subject: note 74959 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-126244@lists.php.net to get a copy of this message
To switch my old page to the new one, I used header("location:somewhere.else") at the begining of the code. But I left the script and counter on the site thinking, it should not be executed. I was surprised, when I found out that the counter noticed some visits on this old site. Maybe all of visitors were search engines. After I put the die() function on the line after header("location:somewhere.else"), visits finished. Maybe it helps you. ---- Server IP: 195.46.80.5 Probable Submitter: 217.23.250.176 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/74959 Del: integrated -- https://master.php.net/note/delete/74959/integrated Del: useless -- https://master.php.net/note/delete/74959/useless Del: bad code -- https://master.php.net/note/delete/74959/bad+code Del: spam -- https://master.php.net/note/delete/74959/spam Del: non-english -- https://master.php.net/note/delete/74959/non-english Del: in docs -- https://master.php.net/note/delete/74959/in+docs Del: other reasons-- https://master.php.net/note/delete/74959 Reject -- https://master.php.net/note/reject/74959 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126244) next »