Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3031 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43343 invoked from network); 30 Jun 2003 11:30:10 -0000 Received: from unknown (HELO max6.rrze.uni-erlangen.de) (131.188.3.214) by pb1.pair.com with SMTP; 30 Jun 2003 11:30:10 -0000 Received: from [131.188.163.104] by max6.rrze.uni-erlangen.de with ESMTP; Mon, 30 Jun 2003 13:30:09 +0200 Message-ID: <5.2.0.9.0.20030630132508.030a2718@pop3.web.de> X-Sender: snuwschi@pop.rrze.uni-erlangen.de X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Mon, 30 Jun 2003 13:30:08 +0200 To: Derick Rethans , PHP Developers Mailing List In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] PATH_TRANSLATED broken? From: uwe@thetaphi.de (Uwe Schindler) References: I think your problem with that comes from the fact, that in PHP4 the apache sapi module define this variable in the wrong way (mistake of original programmer). But a lot of scripts depend on that so we did not fix it in the PHP_4_3 branch. I think there is a former discussion about this in this mailing list! But PHP5 should follow the CGI spec: http://www.graphcomp.com/info/specs/cgi11.html To get your version of the variable it would be better for the scripter to use $_SERVER['SCRIPT_FILENAME'].$_SERVER['PATH_INFO'] By the way in PHP4 all other SAPI modules do the translation in the right way. At 11:57 30.06.2003 +0200, Derick Rethans wrote: >Hey, > >with this URL: http://dru-nl/b.php/1/r/2/1/1 >I get back the following server variables (PHP 5.0.0b1, apache 1 >module): > 'REQUEST_URI' => '/b.php/1/r/2/1/1' > 'SCRIPT_NAME' => '/b.php' > 'PATH_INFO' => '/1/r/2/1/1' > 'PATH_TRANSLATED' => '/home/httpd/html/dru/modules/user/1/r/2/1/1' > 'PHP_SELF' => '/b.php/1/r/2/1/1' > >Shouldn't PATH_TRANSLATED be? > 'PATH_TRANSLATED' => '/home/httpd/html/dru/modules/user/b.php/1/r/2/1/1' > >regards, >Derick > >-- > >------------------------------------------------------------------------- > Derick Rethans http://derickrethans.nl/ > JDI Media Solutions http://www.jdimedia.nl/ > International PHP Magazine http://www.php-mag.net/ >------------------------------------------------------------------------- > > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php