Session Errors - Please Help!!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
liquidchild
Forum Newbie
Posts: 9
Joined: Sun Nov 03, 2002 6:25 am

Session Errors - Please Help!!!

Post by liquidchild »

I recieve the following error while trying to create a session with the code below - can some please help!.


ERROR:
Warning: open(/tmp\sess_606f841ec6dce0a7319a495c77753fee, O_RDWR) failed: No such file or directory (2) in C:\Intranet\php\database\MysqlConnect.php on line 3

Parse error: parse error, unexpected T_FUNCTION, expecting ',' or ';' in C:\Intranet\php\errorLogging\ErrorLogging.php on line 10

Warning: open(/tmp\sess_606f841ec6dce0a7319a495c77753fee, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

CODE:
<?php

session_start();

include ("../errorLogging/ErrorLogging.php");

class MysqlConnect
{
/** Database connection properties **/
var $_mysql_host;
var $_mysql_user;
var $_mysql_password;
etc.....
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

make sure that the parameter session.save_path in php.ini points to a valid directory.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

There also appears to be a parse error within ErrorLogging.php - if you post the first 10 lines of that file we could take a look at it for you.

Mac
liquidchild
Forum Newbie
Posts: 9
Joined: Sun Nov 03, 2002 6:25 am

Post by liquidchild »

Thanks everyone, got it fixed and also the parse error! Thanks ;-)
Post Reply