php3-list | 200003

[PHP3] header() From: Brandt Everett (everett <email protected>)
Date: 03/31/00

Can some one explain this to me?

     $admin_test = admin_user($REMOTE_USER);
     if( !$admin_test ) { header("Location: index.phtml"); exit; }
     exit();

This is the problem portion of my code.

If I run this code, and the $admin_test is false I get the "Warning Can't
display more header info....."
If $admin_test is true, then the page exits, and there is NOTHING that shows
up when I do the View Source.

If I remove the if statement, and just run the header function, like so:

     $admin_test = admin_user($REMOTE_USER);
     header("Location: index.phtml");
     exit();

It works fine and redirects to that correct page.

Any one have any ideas.

Apache 1.3.11+PHP 3.0.13+mod_perl 1.21+mod_ssl 2.5.0+mod_auth_mysql
2.20+mysql 3.22.32 is what this is compiled on.

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>