Jump to content

session_start()


mojito

Recommended Posts

[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?

thanks
mojito
Link to comment
https://forums.phpfreaks.com/topic/12412-session_start/
Share on other sites

[!--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
Link to comment
https://forums.phpfreaks.com/topic/12412-session_start/#findComment-47472
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.