note 27886 deleted from reserved.variables by sniper
| From: | sniper@php.net | Date: | Tue, 21 Oct 2003 19:45:30 +0000 |
| Subject: | note 27886 deleted from reserved.variables by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59079@lists.php.net to get a copy of this message | ||
Note Submitter: y@overminds.org
----
A simple script to call different sites from the url
eg: http://home/whateversite.php would return "the
var is null"
and http://home/whateversite.php?news
would set the $thesite to news :)
usable if you dont want to give away vars
-------------Script starts here---------------
<?PHP
$thesite = $HTTP_SERVER_VARS['QUERY_STRING'];
if ($thesite == "") {
echo "the var is null"
;}
else {
echo $thesite;
}
?>