note 63248 added to function.header

From: Date: Fri, 17 Mar 2006 04:20:40 +0000
Subject: note 63248 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-105963@lists.php.net to get a copy of this message
Just tried out a better way imho to hide your css file, and this way your background graphics for example... <?php header("Content-type: text/css; charset=UTF-8"); ob_start(); ?> /* My CSS Content */ <? if (strlen($_SERVER['HTTP_REFERER']) == 0) { if (strpos($_SERVER['HTTP_REFERER'], 'http://www.example.com') === false) header("Location: http://www.google.de"); } else ob_end_flush(); ?> Is there still an easy way to get this css-file? Would be nice, if the answerer writes me a mail ;) ---- Server IP: 212.124.37.9 Probable Submitter: 84.186.97.213 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/note/edit/63248 Del: integrated -- http://master.php.net/note/delete/63248/integrated Del: useless -- http://master.php.net/note/delete/63248/useless Del: bad code -- http://master.php.net/note/delete/63248/bad+code Del: spam -- http://master.php.net/note/delete/63248/spam Del: non-english -- http://master.php.net/note/delete/63248/non-english Del: in docs -- http://master.php.net/note/delete/63248/in+docs Del: other reasons-- http://master.php.net/note/delete/63248 Reject -- http://master.php.net/note/reject/63248 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#105963) next »