NYCPHP Meetup

NYPHP.org

[nycphp-talk] <?= $PHP_SELF ?>

Nasir Zubair lists at ny-tech.net
Fri Jan 2 13:05:55 EST 2004


Hi,

$PHP_SELF will not work if you have register_global off.

It is safer to use $_SERVER['PHP_SELF']


> -----Original Message-----
> From: Webapprentice . [mailto:webapprentice at mail.com] 
> Sent: Friday, January 02, 2004 1:03 PM
> To: talk at lists.nyphp.org
> Subject: [nycphp-talk] <?= $PHP_SELF ?>
> 
> 
> I notice that <?= $PHP_SELF ?> is used in several articles 
> and manuals for referring to the current page, but when I use 
> this, I get an empty string
> 
> This, however, works:
> <?= $_SERVER['PHP_SELF']; ?>
> 
> What does the former not work?
> 
> Thanks,
> Stephen
> -- 
> ___________________________________________________________
> Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm
> 
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk
> 
> 




More information about the talk mailing list