Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 15654 invoked from network); 21 Oct 2003 14:13:13 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Oct 2003 14:13:13 -0000 Received: (qmail 36359 invoked by uid 500); 21 Oct 2003 14:12:55 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 36344 invoked by uid 500); 21 Oct 2003 14:12:55 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 36331 invoked from network); 21 Oct 2003 14:12:55 -0000 Received: from unknown (HELO planetcustomer.com) (64.41.252.6) by daedalus.apache.org with SMTP; 21 Oct 2003 14:12:55 -0000 Received: (qmail 23092 invoked by uid 510); 21 Oct 2003 15:15:33 -0000 Received: from unknown (HELO UG032) (203.195.173.66) by ugamsolutions.com with SMTP; 21 Oct 2003 15:15:33 -0000 Reply-To: From: "Richard Correia" To: , "'Robert Andersson'" Date: Tue, 21 Oct 2003 19:48:47 +0530 Message-ID: <000d01c397de$47d19fc0$be6ea8c0@smbnetwork> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <069c01c397db$df3d62c0$652e50d5@profundis.se> Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] Error 302 5. Redirection Alert. X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Dear Robert, I think "Location: index.php" is a perfect header. Browser will use earlier request path to make full request when it will receive this header. About $PHP_SELF, he must have register_globals=On in php.ini file. Richard -----Original Message----- From: Robert Andersson [mailto:robert@profundis.nu] Sent: Tuesday, October 21, 2003 7:32 PM To: users@httpd.apache.org Subject: Re: [users@httpd] Error 302 5. Redirection Alert. elimachi@datacom.com.bo wrote: > No, the behavior don not prevail. So the problem may be with the > script. I`m using php v4.1.2 for Linux RH7.3 and the script is: May be, just may be? > if (eregi("index.php", $PHP_SELF)) { > Header("Location: index.php"); > die(); > } This is bad code, what is it doing here? PHP_SELF is the filename of the executing script, and if it matches "index.php" this code redirect to itself, again and again. "Location: index.php" isn't even a valid header, as I'm pretty sure it requires an absolute URI. By default in PHP 4+, $PHP_SELF should not be available, either. If this is your code, go back to: http://www.php.net/manual/en/ If you have taken it from somewhere, complain and/or try to fix it yourself. It has *nothing* to do with Apache and all with a bad script. Regards, Robert Andersson --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org