Jump to content


Photo

session_start()


  • Please log in to reply
2 replies to this topic

#1 mojito

mojito
  • Members
  • PipPipPip
  • Advanced Member
  • 74 posts

Posted 19 June 2006 - 07:56 PM

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

that error comes from the following few lines of code
session_start();
//include("header.php");
//global $type;
$type=$_REQUEST['type'];
echo ">>>>>".$type;

as you can see i tried to remove other bits of code with no joy. Is this a tmp directory problem?

thanks
mojito

#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 19 June 2006 - 08:08 PM

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

#3 mojito

mojito
  • Members
  • PipPipPip
  • Advanced Member
  • 74 posts

Posted 19 June 2006 - 09:35 PM

[!--quoteo(post=385789:date=Jun 19 2006, 08:08 PM:name=kenrbnsn)--][div class=\'quotetop\']QUOTE(kenrbnsn @ Jun 19 2006, 08:08 PM) View Post[/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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users