note 56512 modified in function.header by et

From: Date: Sat, 24 Sep 2005 07:05:00 +0000
Subject: note 56512 modified in function.header by et
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-95678@lists.php.net to get a copy of this message
[Note from et@php.net: This is bogus. There are lots of ways to circumvent this stupid "protection". 1) simply use wget to get the styles 2) use a tool that lets you view the styles that are used by the browser, like the webdev extension for firefox, ... and so on.] // Redirects the browser quickly header("Refresh: 0; http://www.php.net"); echo "This content is usually displayed by the browser in the instant before the next page can be loaded."; i use this in my css1.php file to prevent users getting acces to it.you must be darn quick to copy pase this one. like: <? ob_start ("ob_gzhandler"); header("Refresh: 0; http://www.google.com"); header("Content-type: text/css; charset: UTF-8"); header("Cache-Control: must-revalidate"); $offset = 60 * 60 ; $ExpStr = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT"; header($ExpStr); ?> lots of styles here --was-- // Redirects the browser quickly header("Refresh: 0; http://www.php.net"); echo "This content is usually displayed by the browser in the instant before the next page can be loaded."; i use this in my css1.php file to prevent users getting acces to it.you must be darn quick to copy pase this one. like: <? ob_start ("ob_gzhandler"); header("Refresh: 0; http://www.google.com"); header("Content-type: text/css; charset: UTF-8"); header("Cache-Control: must-revalidate"); $offset = 60 * 60 ; $ExpStr = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT"; header($ExpStr); ?> lots of styles here http://php.net/manual/en/function.header.php

« previous php.notes (#95678) next »