From: Jeff D. <da...@da...> - 2002-11-01 19:48:39
|
> It's notable that the comment in index.php suggests that > USE_PATH_INFO is by default true. Well, this is not quite true. :-) If you don't explicitly set USE_PATH_INFO, then it's value is auto-determined by the following code (in lib/config.php): if (php_sapi_name() == 'apache') define('USE_PATH_INFO', true); else define('USE_PATH_INFO', ereg('\.(php3?|cgi)$', $SCRIPT_NAME)); I don't currently have access to a machine running Apache 2.0. (And I don't want to install it right now...) In order that we can try to fix the auto-detection: Can you tell me what php_sapi_name() returns on your system. Apparently, it's something other than 'apache'. Also, is there way one can tell (from PHP) whether AcceptPathInfo is on or not? I assume if (defined($_SERVER['PATH_INFO'])) then AcceptPathInfo is enabled, but I don't think the converse is true. (If the URL does not contain any trailing path info, then (at least in Apache 1.3.x, PATH_INFO is undefined (not just empty).) Jeff |