all external URLs look like ‘module/action?key1=param1’. No customization possible–but it’s fast.
The difference is that the first uses PHP’s GET, and the second uses PATH_INFO.
I’ve seen PATH_INFO several times, but still don’t know what exactly it is. What does it do?
Actually,
PATH_INFOis related to the Apache Web Server serving PHP pages and not PHP per se.PATH_INFOis an environment variable set by Apache when theAcceptPathInfodirective is turned on. It will contain trailing pathname information that follows an actual filename or non-existent file in an existing directory, whether the request is accepted or rejected. Environment variables are then passed on to the Apache/CGI module in charge of rendering the page.The variable is accessible in PHP using
$_SERVER['PATH_INFO'].For example, assume the location
/test/points to a directory that contains only the single filehere.html. Then requests for/test/here.html/moreand/test/nothere.html/moreboth collect/moreasPATH_INFO.