note 27886 added to reserved.variables
| From: | y at overminds dot org | Date: | Mon, 23 Dec 2002 12:30:57 +0000 |
| Subject: | note 27886 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41222@lists.php.net to get a copy of this message | ||
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;
}
?>
--
http://www.php.net/manual/en/reserved.variables.php
http://master.php.net/manage/user-notes.php?action=edit+27886
http://master.php.net/manage/user-notes.php?action=delete+27886
http://master.php.net/manage/user-notes.php?action=reject+27886