php/mysql login page.
Posted: Sun Mar 26, 2006 11:53 pm
good day to all.
i found a php/mysql code at hotscript ["SF-User V1.0"] and try using it. I have followed the direction how to configure it for my needs on database connection. but then i have encountered an error at first launch on my local server. this is the error:
PS: i know there's no problem with the code it self but i post it anyway to make more easy.
i found a php/mysql code at hotscript ["SF-User V1.0"] and try using it. I have followed the direction how to configure it for my needs on database connection. but then i have encountered an error at first launch on my local server. this is the error:
What doest this mean? please help, any suggestion or advice will appreciate it very much..Warning: open(/tmp\sess_7257e7515a0a4e88a9b268a169e074d0, O_RDWR) failed: No such file or directory (2) in c:\phpdev5\www\login\functions.php on line 2
Hello Guest!
Main | Login | Log Out | Register | Members
Powered by SF-Users V1.0
Warning: open(/tmp\sess_7257e7515a0a4e88a9b268a169e074d0, 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
PS: i know there's no problem with the code it self but i post it anyway to make more easy.
Code: Select all
<?php
session_start(); //
##################################
# EDIT BELOW BUT ONLY BETWEEN '' #
$DBHost = 'localhost'; //Your host, usually localhost
$DBUser = 'admin'; //Your database username
$DBPass = 'administrator'; //Your database password
$DBName = 'members'; //The database name you want/have the user system on
# EDIT ABOVE BUT ONLY BETWEEN '' #
##################################
mysql_connect("$DBHost", "$DBUser", "$DBPass")or die(mysql_error());
mysql_select_db("$DBName")or die(mysql_error());
?>