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: 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 What doest this mean? please help, any suggestion or advice will appreciate it very much.. PS: i know there's no problem with the code it self but i post it anyway to make more easy. <?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()); ?> Code (markup):
Check php.ini is set correctly. I don't use windows but paths are handled differently in php.ini, I think, compared to normal Windows and has to be accounted for in php.ini. something like c:/tmp/ but I'm not totally sure. And make sure c:\tmp exists. EDIT: Or it might simply be c:\tmp\ in php.ini e.g. session.save_path = c:\tmp and make sure the directory exists.
Try to open c:\phpdev5\www\login\functions.php and look at line 2. Chnage the path from "/tmp" to "C:\Documents and Settings\Temp" Best Regards Adrian