Date: 07/08/05 (PHP Development) Keywords: php Apparently there is plenty of debate over which is better (more portable, best practice, preferred, etc.) What is the concensus? I've been using PHP_SELF since I first started using PHP, but lately I've had to convert some 3rd party applications, and found that only SCRIPT_NAME really worked 100% of the time. Digging deeper I found this to be common question, though I never had to deal with it until now: how should your script refer to itself? Source: http://www.livejournal.com/community/php_dev/59743.html
|