04-17-2009, 11:32 PM
|
#20 (permalink)
|
|
The Frequenter
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
|
$_SERVER is a superglobal, that means when you update a value it will reflect all scopes:
PHP Code:
<?php
expose_phpself();
$_SERVER['PHP_SELF'] = '/this/is/a/custom/value';
expose_phpself();
function expose_phpself()
{
echo($_SERVER['PHP_SELF'] . PHP_EOL);
}
?>
(as if I understood your question correctly :))
__________________
|
|
|