View Single Post
Old 04-17-2009, 11:32 PM   #20 (permalink)
Kalle
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

$_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 :))
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote