PHP_SELF versus SCRIPT_NAME

    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://community.livejournal.com/php_dev/59743.html

« JS form validation,... || clickable url's & emails »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home