Re: [PHP] global variables inside of a function

2002-06-21 Thread Mark McCulligh
I tried using $_SERVER['PHP_SELF'] and $HTTP_SERVER_VARS['PHP_SELF'] but got the same error. I found the answer on www.php.net. function blah() { global $PHP_SELF; echo $PHP_SELF; } Thanks for your help, Mark. -- > > On Friday, June 21, 2002, at 09:23 AM, Mark McCulligh wrote: > > >

Re: [PHP] global variables inside of a function

2002-06-21 Thread Erik Price
On Friday, June 21, 2002, at 09:23 AM, Mark McCulligh wrote: > Is there a way to access a session variables or server variables from > inside > a function? > > I have a function and was trying to use $PHP_SELF inside of it. > I get a variable undefined error. > Out side of the function it work

[PHP] global variables inside of a function

2002-06-21 Thread Mark McCulligh
Is there a way to access a session variables or server variables from inside a function? I have a function and was trying to use $PHP_SELF inside of it. I get a variable undefined error. Out side of the function it works fine. I don't want to parameter pass the global variables to the function, I