Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie, PHP_SELF says not defined

Status
Not open for further replies.

nadskram

Programmer
May 21, 2001
41
0
0
US
i am a newbie nd my set of tutorials says $PHP_SELF, but my browser spits back

Notice: Undefined variable: PHP_SELF in Page on line 18

the phpInfo() thing uses server[PHP_INFO], but my tutorials page doesnt like how i am using the brackets.

please tell me why $PHP_SELF doesnt work, or tell me how to get it to work with server["PHP_SELF"] and brackets
 
You should use $_SERVER["PHP_SELF"] to access the self variable from now on, all other methods won't work or are deprecated starting from PHP 4.2.0. It's not a lie if YOU believe it ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top