what's the difference between PHP_SELF, SCRIPT_NAME and REQUEST_URI in PHP? [duplicate]
This question already has answers here : PHP_SELF vs PATH_INFO vs SCRIPT_NAME vs REQUEST_URI (9 answers) Closed 6 years ago . all is said in the title. What is the difference between the three properties ? I've been testing the value of them and all what I can say is they are similar. However because I'm a standard freak, I'd like to know if there are some subtlety between them so I can avoid bad coding or being stuck later in some unexpected behavior. 'PHP_SELF' The filename of the currently executing script, relative to the document root. For instance, $_SERVER['PHP_SELF'] in a script at the