Location:-problems using manual-lookup.php

From: Date: Tue, 01 Aug 2000 09:58:34 +0000
Subject: Location:-problems using manual-lookup.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-1479@lists.php.net to get a copy of this message
Hi, we successfully moved php3.de to a new-generation server; from there on, manual-lookup.php doesn't work as expected. -do a lookup on any manual entry (e.g. "date"). -the correct manual page is being loaded. -on the navigation-list, every link goes to e.g. "http://www.php3.de/function.date.php" instead of "http://www.php3.de/manual/function.date.php". In manual-lookup.php on line 33f, a Location-Header is being generated, so the result is being redirected to "Location: /manual/function.date.php". However, the URL is not properly transported for the link-list. When the Location-Header in manual-lookup.php is being changed to the full site location ("Location: http://www.php3.de/manual/function.date.php"), everything works as expected. Other mirrors seem to work as expected; so it can't be a general php problem. I've written a workaround for this, which is supposed to run everywhere ... 38c38,39 < Header("Location: $file"); --- > $site=ereg_replace("$SCRIPT_URL","",$SCRIPT_URI); > Header("Location: $site$file"); We're running PHP 4.0.1pl2 and PHP 3.0.16 as CGI under Linux, at http://php3.de/test.php and http://php3.de/test.php3 you can see the configuration options and runtime-variables. Is this problem of our php-configuration or a simple scripting-error which only shows up in our server configuration? Anders -- Schlund + Partner AG Systemadministration + Security Erbprinzenstrasse 4-12 Tel: 49-721-9137450 D-76133 Karlsruhe E-Mail: anders@schlund.de

« previous php.mirrors (#1479) next »