this took me a while to figure out. When I was creating functions and trying to access predefined variables in the function body using $HTTP_SERVER_VARS["http_referer"], it was returning an empty string, so i used $_SERVER["http_referer"] and my function worked.

Conclusion $_SERVER is a global variable and $HTTP_SERVER_VARS is not.

From what I understand, PHP is moving towards $_SERVER type declarations. Anyone have any insight on this topic?

J.

    I dont think there is any difference. I think it's just two ways of saying one thing, like the delete() and unlink() function do exactly the same thing.

      Write a Reply...