note 86125 added to function.header

From: Date: Sat, 04 Oct 2008 07:07:47 +0000
Subject: note 86125 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-145040@lists.php.net to get a copy of this message
Beware of the comments about header( "location:..." ). Some comments recommend to redirect to relative paths, but the RFC clearly states: --quote-- For 3xx responses, the location SHOULD indicate the server's preferred URI for automatic redirection to the resource. The field value consists of a single absolute URI. --/quote-- So "location:/example.php" ist wrong, but "location:http://www.example.com/example.php" is correct. ---- Server IP: 212.124.37.9 Probable Submitter: 82.82.39.211 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/86125 Del: integrated -- https://master.php.net/note/delete/86125/integrated Del: useless -- https://master.php.net/note/delete/86125/useless Del: bad code -- https://master.php.net/note/delete/86125/bad+code Del: spam -- https://master.php.net/note/delete/86125/spam Del: non-english -- https://master.php.net/note/delete/86125/non-english Del: in docs -- https://master.php.net/note/delete/86125/in+docs Del: other reasons-- https://master.php.net/note/delete/86125 Reject -- https://master.php.net/note/reject/86125 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#145040) next »