note 126235 added to function.header

From: Date: Mon, 12 Jul 2021 12:07:25 +0000
Subject: note 126235 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-216598@lists.php.net to get a copy of this message
Please note that there is no error checking for the header command, either in PHP, browsers, or Web Developer Tools. If you use something like "header('text/javascript');" to set the MIME type for PHP response text (such as for echoed or Included data), you will get an undiagnosed failure. The proper MIME-setting function is "header('Content-type: text/javascript');". ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 98.2.238.89) ---- Manual Page -- https://php.net/manual/en/function.header.php Edit -- https://main.php.net/note/edit/126235 Del: integrated -- https://main.php.net/note/delete/126235/integrated Del: useless -- https://main.php.net/note/delete/126235/useless Del: bad code -- https://main.php.net/note/delete/126235/bad+code Del: spam -- https://main.php.net/note/delete/126235/spam Del: non-english -- https://main.php.net/note/delete/126235/non-english Del: in docs -- https://main.php.net/note/delete/126235/in+docs Del: other reasons-- https://main.php.net/note/delete/126235 Reject -- https://main.php.net/note/reject/126235 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216598) next »