halli hallo ich hab ein kleines problemchen -> user abfrage aus ner sql db (läuft alles unter windoof) ... krieg immer eine seltsame error msg. vielleicht kennt sich ja jemand damit aus
hier die error msg..
----------> hier noch der quellcode
hier die error msg..
PHP-Code:
Warning: open(/tmp\sess_0d83a55cd6ea637e8ccbbae3e9769c06, O_RDWR) failed: No such file or directory (2) in c:\inetpub\apacheroot\verify.php on line 4
Please enter username & password
Warning: open(/tmp\sess_0d83a55cd6ea637e8ccbbae3e9769c06, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0<br
----------> hier noch der quellcode
PHP-Code:
<?
// verify.php -> 4 registering sessions
session_start();
// include variables
include('var.inc.php');
// if -> users
if ((!isset($username)) or (!isset($password)))
{
die ("Please enter username & password");
}
// connection 2 db
$conn = mysql_connect($dbserver,$dbuser,$dbpas)
or die ("no connection to db!");
mysql_select_db($dbname,$conn);
// select von user&pass
$result = mysql_query("select pass, level from adminzone where name='.$username',$conn");
$zeile = mysql_fetch_array($result,mysql_assoc);
mysql_close($conn);
// search 4 user
if (!$zeile)
{
die("Name not registered!");
}
// check user <-> pass
if (!$zeile["pass"]<>$passwort)
{
die("Bad Pass/User!");
}
// level of authentification
$level = $zeile["level"];
// register the sessions
session_register('username');
session_register('level');
?>
<html>
<head>
<title> Login Area </title
</head>
<body>
<form action="verify.php>
<br><br>
Username:
<input type="text" name="username" size="30" maxlength="30">
<br>
Pass:
<input type="password" name="passwort" size="30"> <br>
<input type="submit" name="absenden" value="einloggen">
</form>
</body>
</html>
Kommentar