RE: [PHP] auto_prepend_file

From: Date: Thu, 27 Mar 2003 02:26:36 +0000
Subject: RE: [PHP] auto_prepend_file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-141155@lists.php.net to get a copy of this message
> Trying to use > php_value auto_prepend_file /path/to/file/checkauth.php > in an .htaccess file. > > I've used this before without problems, however with this instance, I > keep getting a message in my browser which says: > Redirection limit for this URL exceeded. Unable to load the requested > page. > > my checkauth.php page looks like this > > <? > session_start(); > if (!session_is_registered("SESSION")){ > header("Location: /error.php?e=2"); > exit; > } > ?> > > Any suggestions would be appreciated. error.php is probably being prepended with this file, which will fail your check and try to redirect to error.php, which will fail your check and try to redirect to error.php, which will fail your check and try to redirect to error.php, which will fail your check and try to redirect to error.php, which will fail your check and try to redirect to error.php, which will fail your check and try to redirect to error.php, which will fail your check and try to redirect to error.php, which will fail your check and try to redirect to error.php, which will fail your check and try to redirect to error.php, which will fail your check and try to redirect to error.php, which will fail your check and try to redirect to error.php, which will fail your check and try to redirect to error.php, which will fail your check and try to redirect to error.php, which will fail your check and try to redirect to error.php, which will fail your check and try to redirect to error.php.... and you'll eventually hit a limit where your web server or browser will stop. :) ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#141155) next »