Hello,
I'm trying to get php authentication working on a test apache2 server
prior to implementing it site wide. I'm authenticating against the system
password file, and i'm getting a parce error at the * line. Any help
appreciated.
Thanks.
Dave.
<?
// error.php - destroys session and returns to login form
?>
<html>
<head>
<basefont face="Verdana">
</head>
<body>
<?
// check the error code and generate an appropriate error
// message switch
* ($e) {
case -1:
$message = "No such user.";
break;
case 0:
$message = "Invalid username and/or password.";
break;
case 2:
$message = "Unauthorized access.";
break;
default:
$message = "An unspecified error occurred.";
break;
}
?>
<center>
<? echo $message; ?>
<br>
Please <a href="index.php">log in</a> again.
</center>
</body>
</html>