Re: $PATH_INFO strangeness

From: Date: Tue, 21 Aug 2001 23:59:37 +0000
Subject: Re: $PATH_INFO strangeness
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63821@lists.php.net to get a copy of this message
> Produces the result (among everything else): > HTTP_SERVER_VARS["PATH_INFO"]: /foo/bar > > However, an <? echo "Path info: $PATH_INFO"; ?> produces an empty > result. Same with $HTTP_SERVER_VARS["PATH_INFO"]. That's crazy... You're not doing this inside a function and forgetting: global $PATH_INFO are you? OH -- You also aren't having short_tags off, so <? just goes to the browser as an uninterpreted HTML tag are you? Use <?php *ALWAYS*. > Scenario 2 (a & b): > Running a) Apache 1.3.12 on WIN2K w/ PHP 4.0.6 (cgi binary) or > b) Apache 1.3.12 on Linux with PHP 4.0.4pl1 (cgi binary) > > Calling test.php/foo/bar with the contents: > <? phpinfo(); ?> > > Produces a 500 internal server error. Most likely, you aren't using Alias and Action properly, and Apache is looking for a file named "test.php/foo/bar" but can't find it, but knows it should feed it to PHP, and is getting very confused. What do your Apache error logs say? -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#63821) next »