I dont know if this is a server problem or a code problem... Here's the problem.
I have this file:
<?php
session_start();
require("config.inc.php");
$username = $POST['username'];
$password = $POST['password'];
mysql_connect($dbhost, $dbuname, $dbpass) or die("Could not connect: " . mysql_error());
mysql_select_db($dbname);
$errlogin = $_GET['errlogin'];
$result = mysql_query("SELECT num, username, level FROM risk_players WHERE username='$username' AND password=password('$password')");
if (mysql_num_rows($result) == 0)
{
}
else
{
$row = mysql_fetch_array($result, MYSQL_ASSOC);
$SESSION['RISK_USERNUM'] = $row['num'];
$SESSION['RISK_USERNAME'] = $row['username'];
$_SESSION['RISK_USERLEVEL'] = $row['level'];
$result = mysql_query("UPDATE risk_players SET status='1', stamp='".time()."' WHERE num='".$row['num']."'");
header ("Location: index.php");
}
?>
This is a loggin script.... when i try and loggin i get this error message on the screen:
Warning: session_start(): open(/tmp\sess_a9a754b8ebffd8cc8ea6da843b6d83e2, O_RDWR) failed: No such file or directory (2) in C:\Inetpub\wwwroot\risc\login.php on line 2
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Inetpub\wwwroot\risc\login.php:2) in C:\Inetpub\wwwroot\risc\login.php on line 2
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\wwwroot\risc\login.php:2) in C:\Inetpub\wwwroot\risc\login.php on line 2
Warning: Unknown(): open(/tmp\sess_a9a754b8ebffd8cc8ea6da843b6d83e2, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
Can someone help me please...
Im running IIS on win xp, with the new php installed