mojito Posted June 19, 2006 Share Posted June 19, 2006 [code]Warning: session_start() [function.session-start]: open(/tmp\sess_63a3q4s85t3esvcl6c2lvq6216, O_RDWR) failed: No such file or directory (2) in D:\work\rrrrrr.com\search02.php on line 2[/code]that error comes from the following few lines of code [code]session_start();//include("header.php");//global $type;$type=$_REQUEST['type'];echo ">>>>>".$type;[/code]as you can see i tried to remove other bits of code with no joy. Is this a tmp directory problem?thanksmojito Quote Link to comment https://forums.phpfreaks.com/topic/12412-session_start/ Share on other sites More sharing options...
kenrbnsn Posted June 19, 2006 Share Posted June 19, 2006 That error is saying that the directory where PHP wants to store the file for the sessions either does not exists or is set to readonly. Check you PHP.INI file to see where it is pointing and fix your problem.Ken Quote Link to comment https://forums.phpfreaks.com/topic/12412-session_start/#findComment-47456 Share on other sites More sharing options...
mojito Posted June 19, 2006 Author Share Posted June 19, 2006 [!--quoteo(post=385789:date=Jun 19 2006, 08:08 PM:name=kenrbnsn)--][div class=\'quotetop\']QUOTE(kenrbnsn @ Jun 19 2006, 08:08 PM) [snapback]385789[/snapback][/div][div class=\'quotemain\'][!--quotec--]That error is saying that the directory where PHP wants to store the file for the sessions either does not exists or is set to readonly. Check you PHP.INI file to see where it is pointing and fix your problem.Ken[/quote]ok ,thanks for that, its strange as it creates a 0mb file in that directory and xp cant set the readonly attribute. But i can create files etc in this directory. thanks though.m Quote Link to comment https://forums.phpfreaks.com/topic/12412-session_start/#findComment-47472 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.