AdamPGT Posted March 7, 2006 Share Posted March 7, 2006 I'm building a small PHP/MySQL driven system on a Windows IIS 5.x (Windows Server 2000). In any case I have a simple login page that works fine from the IP address, but when I use the host name (http://checklist/) I get an HTTP - 405 Resource Not Allowed error page. Any ideas?Thanks,AdamHere's the login script, just in case:[code]<?phpif(isset($_POST['Submit'])){ $email = $_POST['Email']; $pass = $_POST['Pass']; $query = "SELECT UserID, UserLevel, Email, Password FROM users WHERE Email = '$email'"; $select = mysql_query($query) or die(mysql_error()); if (mysql_num_rows($select) < 1){ header("Location: index.php?err=email"); } else { $row = mysql_fetch_array($select); $ePass = md5($pass); if ($ePass == $row['Password']){ session_start(); header("Cache-control: private"); // IE Fix //Store session information $login = date('Y-m-d') . " " . time(); $insert = "INSERT INTO sessions (Session, UserID, LoginTime) VALUES ('" . session_id() . "', '" . $row['UserID'] . "', '" . $login . "')"; mysql_query($insert); $sid = mysql_insert_id(); $sess_sql = "SELECT SessID, Session FROM sessions WHERE SessID = '$sid'"; $sess_result = mysql_query($sess_sql); $sess_row = mysql_fetch_array($sess_result); header("Location: main.php?sid=" . $sess_row['SessID'] . "&&session=" . $sess_row['Session']); } else { header("Location: index.php?err=pass"); //echo $ePass . "<br>" . $row['Password']; } }}?>[/code]--Adam Quote Link to comment Share on other sites More sharing options...
witch Posted December 26, 2006 Share Posted December 26, 2006 Maybe this site can help you with this problem.http://forums.iis.net/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.