Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Blog.Taragana.com:
PHP Variables Demystified
Jun 06, 2005 @ 11:48:47

From Angsuman's post on blog.taragana.com:

Understanding $_SERVER['PHP_SELF'], $PHP_SELF, $_SERVER['REQUEST_URI'] and $_SERVER['SCRIPT_NAME'] in PHP and when to use what. The above PHP variables have slight differences which are often ignored, often leading to problems in large scale deployments or product solutions. I have attempted to debug them for you.

He covers the simple differences between these four variables, including how they can be really useful to you and your scripts.

Thanks to PHP Magazine for the pointer...

tagged:

Link:


Trending Topics: