getting:
Fatal error: Cannot redeclare status() in /home/sites/site27/web/trouble/function.php on line 6
here is the code i am using:
<?php
if (!isset($PHP_AUTH_USER)) {
header('WWW-Authenticate: Basic realm="Project Page"');
header('HTTP/1.0 401 Unauthorized');
exit;
} if (isset($PHP_AUTH_USER)) {
include("function.php");
$hash = md5($PHP_AUTH_PW);
mysql_connect($host, $user) or die (mysql_error());
mysql_select_db($database) or die (mysql_error());
$authquery = "SELECT * FROM auth WHERE user = '$PHP_AUTH_USER' and pass = '$hash'";
$authresult = mysql_db_query($database, $authquery);
$auth = mysql_numrows($authresult);
}
if ($auth == "1") {
$Etime = shell_exec("date");
include("function.php");
\\ end code snippet
?>