php-general | 2001062
Date: 06/24/01
- Next message: Jason Lustig: "RE: [PHP] $PHP_SELF name space?"
- Previous message: Kent Sandvik: "[PHP] $PHP_SELF name space?"
- In reply to: Kent Sandvik: "[PHP] $PHP_SELF name space?"
- Next in thread: Jason Lustig: "RE: [PHP] $PHP_SELF name space?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, 25 Jun 2001 13:08, Kent Sandvik wrote:
> Hi, is there something silly I'm doing (latest PHP 4.0.5), when this
> does not work at all:
> ---
> class xCrumbs
> {
> function Render(){
> echo $PHP_SELF;
> }
> }
> $crumbs = new xCrumbs();
> $crumbs->Render();
>
>
> while
> echo $PHP_SELF;
>
> works just fine? Or something with name spaces and when $PHP_SELF is
> activated?
>
> Thx, Kent
I think you need to declare $PHP_SELF global when referring to it in a
function...
-- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIAThis tagl ineh asto oman yfou rlet terw ords.
-- 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: Jason Lustig: "RE: [PHP] $PHP_SELF name space?"
- Previous message: Kent Sandvik: "[PHP] $PHP_SELF name space?"
- In reply to: Kent Sandvik: "[PHP] $PHP_SELF name space?"
- Next in thread: Jason Lustig: "RE: [PHP] $PHP_SELF name space?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

