$HTTP_HOST is that still valid or should it be: $_SERVER['HTTP_HOST']??
Printable View
$HTTP_HOST is that still valid or should it be: $_SERVER['HTTP_HOST']??
First way: deprecated and only when register_globals is on
Second way: teh 4.2 way and the good way
cool, that is what i thought it changed to.
Basically anything that was once considered a global now needs something slapped infront of it (unless register_globals is on (and I know you turn it on...:p)) for 4.2Quote:
Originally posted by cpradio
cool, that is what i thought it changed to.
I have only forced it on for my old scripts by using ini_set("register_globals",1); as rewriting them so they are 4.2 compatabile would be too long of a process.
My newer scripts I am planning on following the 4.2 "rules/standards" as far as global variables, but as far as readability I can careless.