using it through the $_SERVER array is always better, despite it `taking more time` because of more typing; it'll save you many hassles. Among knowing exactly where it came from, you will then avoid any server change issues that may result in your program falling apart.
Think about what would happen if someone added "...?PHP_SELF=blah" to the end of the URL. Without accessing PHP_SELF through the superglobal $_SERVER array, you are introducing easily avoidable security vulnerabilities.
Bookmarks