PHP $_SERVER

$_SERVER[’PHP_SELF’], $_SERVER[‘REQUEST_URI’], and $_SERVER[’SCRIPT_NAME’] all behave in similar ways, they return information about what file is being used. When exposed to some differnt scenarios, you can see in some cases they do behave differently. This can help you decide which is best for what you need in your script.

Read More