am trying to get authentication working and am getting a weird error,
Parse error: parse error, unexpected T_STRING in /data/www/pvtpage.php on line 6
This is my code if it helps, very simple you will see.
<?php
if (empty($password))
{
die ("<h1><center>No password mentioned.</center></h1>
}
if (!($password== "mypassword"))
{
die (<h1><center>Password not Valid</center></h1>
}
echo "<h1><center>Welcome to the Private Area!</center></h1>";
?>
any ideas what the problem is?