I am trying to Redirect my browser if something is true. I am using the following code but I still get the error.
The page I am accessing is ops.php, the first 3 lines look like:
<?
include "security.inc";
?>
There is no lines of code or HTML above that.
The first lines of security.inc:
<?
if (!$portaluser) {
header("Location: http://localhost/security/login_form.php");
exit;
} else {
}
?>
There is no lines of code or HTML above that.
!$portaluser is a cookie variable and works fine. I want it to redirect if this doesn't exist. I have tried ommiting the exit; line. It seems to work fine on a win32 box running apache but not Linux (RH 6.2) running linux, I do not believe the config to be different but any ideas are very much appreciated as this is really stopping my prject
Many Thanx
Marcus