note 73310 added to function.header

From: Date: Sat, 17 Feb 2007 08:30:51 +0000
Subject: note 73310 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-123504@lists.php.net to get a copy of this message
Hey try this <a href="http://www.mattysmith.com">logout</a> <center><h1>Welcome</h1></center> <forum type="username"> <forum type="password"> <?php header("HTTP/1.0 404 Not Found"); ?> <?php header("Location: http://www.mattysmith.com/"); /* Redirect browser */ /* Make sure that code below does not get executed when we redirect. */ exit; ?> <?php /* Redirect to a different page in the current directory that was requested */ $host = $_SERVER['HTTP_HOST']; $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); $extra = 'mypage.php'; header("Location: http://$host$uri/$extra"); exit; ?> <?php //Fix cache control for PDFs in IE header('Content-Disposition: attachment; filename="downloaded.pdf"'); header('Expires: 0'); header('Pragma: cache'); header('Cache-Control: private'); echo $pdf->Output("","S"); exit(); ?> <?php ob_start(); // assuming you have image data in $imagedata $length = strlen($imagedata); header('Last-Modified: '.date('r')); header('Accept-Ranges: bytes'); header('Content-Length: '.$length); header('Content-Type: image/jpeg'); print($imagedata); ob_end_flush(); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 83.100.138.31 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/73310 Del: integrated -- https://master.php.net/note/delete/73310/integrated Del: useless -- https://master.php.net/note/delete/73310/useless Del: bad code -- https://master.php.net/note/delete/73310/bad+code Del: spam -- https://master.php.net/note/delete/73310/spam Del: non-english -- https://master.php.net/note/delete/73310/non-english Del: in docs -- https://master.php.net/note/delete/73310/in+docs Del: other reasons-- https://master.php.net/note/delete/73310 Reject -- https://master.php.net/note/reject/73310 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#123504) next »