cty Posted December 9, 2006 Share Posted December 9, 2006 Problem with session in php5Good day,can anyone tell me how to solve my problem?i use the php4 to test this simple code ,is work!After i uninstall and install php5,the error occur.---------------------------------------------my code:(*for testing session only)<?php session_start(); print session_id();?>------------------------------------------------Error message:vn5690j2f0beqe5qd0b36m10t3PHP Warning: Module 'mysql' already loaded in Unknown on line 0 PHP Warning: session_start() [function.session-start]: open(C:\DOCUME~1\CTY\LOCALS~1\Temp\php\upload\sess_vn5690j2f0beqe5qd0b36m10t3, O_RDWR) failed: No such file or directory (2) in C:\cty\test.php on line 2 PHP Warning: Unknown: open(C:\DOCUME~1\CTY\LOCALS~1\Temp\php\upload\sess_vn5690j2f0beqe5qd0b36m10t3, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\DOCUME~1\CTY\LOCALS~1\Temp\php\upload) in Unknown on line 0----------------------------------------------------------I did check my php(using phpinfo();)And i found that session.save_path C:\DOCUME~1\CTY\LOCALS~1\Temp\php\upload I think is something wrong here?this path should be C:\PHP\sessiondata(**when i using php4 ,it is in C:\PHP\sessiondata)If really is cause by this ,how i edit the php.ini?If no,what is the problem?I currently using php5+mysql4+IISBeside,can guide me to install php5?(May be is installation not correct?) Link to comment https://forums.phpfreaks.com/topic/30008-problem-with-session-in-php5/ Share on other sites More sharing options...
linuxdream Posted December 9, 2006 Share Posted December 9, 2006 Well your first problem seems to be that your using IIS...okok, j/kCheck your php.ini file. Be sure your not still using the PHP4 one for some strange reason. Then check the session.save_path value. Works fine under *nix but this must be changed for Microcrap boxes. It's right there in the file as to why. Link to comment https://forums.phpfreaks.com/topic/30008-problem-with-session-in-php5/#findComment-137956 Share on other sites More sharing options...
cty Posted December 9, 2006 Author Share Posted December 9, 2006 Hi,Can u please let me know step by step what should i do?Currently i using IIS 5.x ,Windows Xp Pro ,Php5.x and mySql 4.xPreviuosly i use php4.I already uninstall it and install php5.When i check via phpinfo();it show that is php5!But,there may be some problem in session.save_path --->C:\DOCUME~1\CTY\LOCALS~1\Temp\php\upload Is it this is not normal path?what should i do?how i edit it?What should i do in php.ini? Link to comment https://forums.phpfreaks.com/topic/30008-problem-with-session-in-php5/#findComment-138013 Share on other sites More sharing options...
linuxdream Posted December 9, 2006 Share Posted December 9, 2006 Unfortunately, I've never worked with php/mysql in an IIS environment. I was just looking through the php.ini file on my own Linux box and saw reference to the session.save_path being a bit different for Windows. A quick google on the topic gave me this: http://www.ricocheting.com/server/php.htmlMight help. Good luck. Link to comment https://forums.phpfreaks.com/topic/30008-problem-with-session-in-php5/#findComment-138074 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.