note 63248 rejected from function.header by nlopess

From: Date: Fri, 17 Mar 2006 09:54:39 +0000
Subject: note 63248 rejected from function.header by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-105973@lists.php.net to get a copy of this message
Note Submitter: matthi at ranet dot de ---- 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 ;)

« previous php.notes (#105973) next »