Jump to content

Archived

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

mojito

session_start()

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

×

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.