php-general | 2001032
Date: 03/16/01
- Next message: Brett: "Re: [PHP] Can you recommend an ISP with the following?"
- Previous message: Scott Fletcher: "[PHP] $PHP_SELF vs. functions, arrays and variable"
- In reply to: Scott Fletcher: "[PHP] $PHP_SELF vs. functions, arrays and variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Scott,
Good question! $PHP_SELF is a global variable, so you need to declare it in
functions:
function a()
{
global $PHP_SELF;
print $PHP_SELF;
}
John
"Scott Fletcher" <scott <email protected>> wrote in message news:98tjgv$40e$1 <email protected>
> Hi!
>
> I noticed when using $PHP_SELF in the script, you can use only the
> variables. So, I tried it with the arrays or functions and found that it
> does not work. So, is $PHP_SELF limited to variables only?
>
> Scott
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Brett: "Re: [PHP] Can you recommend an ISP with the following?"
- Previous message: Scott Fletcher: "[PHP] $PHP_SELF vs. functions, arrays and variable"
- In reply to: Scott Fletcher: "[PHP] $PHP_SELF vs. functions, arrays and variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

