note 73310 deleted from function.header by philip

From: Date: Sun, 18 Feb 2007 16:57:26 +0000
Subject: note 73310 deleted from function.header by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-123545@lists.php.net to get a copy of this message
Note Submitter: example303 at googlemail dot com ---- 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(); ?>

« previous php.notes (#123545) next »