Jump to content

global $PHP_SELF; purpose?


makenoiz

Recommended Posts

It's something to do with register_globals. There used to be a variable called $PHP_SELF (which PHP created automatically) and you'd need the global keyword to access it from within a function.

 

But

a) register_globals is bad and should not be enabled, and

b) PHP_SELF is insecure (unless you know what you're doing with it).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.