Re: $PHP_SELF name space?
| From: | David Robley | Date: | Mon, 25 Jun 2001 03:42:40 +0000 |
| Subject: | Re: $PHP_SELF name space? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55088@lists.php.net to get a copy of this message | ||
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 AUSTRALIA
This tagl ineh asto oman yfou rlet terw ords.