Hai guys I got some error hope someone could help me

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
omgimstupid
Forum Newbie
Posts: 6
Joined: Sun Jan 17, 2010 6:57 am

Hai guys I got some error hope someone could help me

Post by omgimstupid »

Hey i guys I got this error and i dont know how to fix it. My friend told me that the php.ini not configured properly..I hope someone could provide step by step guide to fix this problem

Code: Select all

Warning: session_start() [function.session-start]: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/2e\sess_bf546a6a14333c84c47344b1d2026592, O_RDWR) failed: No such file or directory (2) in C:\AppServ\www\admin\index.php on line 2
 
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\AppServ\www\admin\index.php:2) in C:\AppServ\www\admin\index.php on line 2
 
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\admin\index.php:2) in C:\AppServ\www\admin\index.php on line 2
 
Warning: Unknown: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/2e\sess_bf546a6a14333c84c47344b1d2026592, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
 
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/2e) in Unknown on line 0
am I on the wrong forum? if yes please give me a link
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Hai guys I got some error hope someone could help me

Post by Eran »

The location of the session files on your computer is not writable for whatever reason. You can control the location via the session.save_path parameter in your php.ini configuration file
omgimstupid
Forum Newbie
Posts: 6
Joined: Sun Jan 17, 2010 6:57 am

Re: Hai guys I got some error hope someone could help me

Post by omgimstupid »

pytrin wrote:The location of the session files on your computer is not writable for whatever reason. You can control the location via the session.save_path parameter in your php.ini configuration file
Thank you for your concern. To be honest Im a newbie in php. Is there any step by step tutorial to fix this? I really appriciate if someone could help me with this. Thank you in advance.
mellowman
Forum Commoner
Posts: 62
Joined: Sat Nov 22, 2008 5:37 pm

Re: Hai guys I got some error hope someone could help me

Post by mellowman »

Read up about the php.ini file...then just go make one and change the session.save_path parameter to writable :mrgreen:

if u need some help im on aim :]
aim-imcmellowman
omgimstupid
Forum Newbie
Posts: 6
Joined: Sun Jan 17, 2010 6:57 am

Re: Hai guys I got some error hope someone could help me

Post by omgimstupid »

mellowman wrote:Read up about the php.ini file...then just go make one and change the session.save_path parameter to writable :mrgreen:

if u need some help im on aim :]
aim-imcmellowman
U mean like this?

Code: Select all

[Session]
; Handler used to store/retrieve data.
session.save_handler = files
 
; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;
; As of PHP 4.0.1, you can define the path as:
;
;     [b]session.save_path = "N;/path"/// to session.save_path = "N;/writable"[/b]
;
; where N is an integer.  Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories.  This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
;     [b]session.save_path = "N;MODE;/path" ///to   session.save_path = "N;MODE;/writable"[/b]
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
;session.save_path = "/tmp"
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Post by Jonah Bron »

I think, but you'll need to uncomment the line (remove the semi-colon)
omgimstupid
Forum Newbie
Posts: 6
Joined: Sun Jan 17, 2010 6:57 am

Re: Hai guys I got some error hope someone could help me

Post by omgimstupid »

So you mean instead of

Code: Select all

session.save_path = "N;/writable"
Use this? Remove the Semi Collon

Code: Select all

session.save_path = N;/writable
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Hai guys I got some error hope someone could help me

Post by social_experiment »

Code: Select all

;     session.save_path = "N;MODE;/path" ///to   session.save_path = "N;MODE;/writable"
Semi-colon = ;

Code: Select all

    session.save_path = "N;MODE;/path" ///to   session.save_path = "N;MODE;/writable"
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
omgimstupid
Forum Newbie
Posts: 6
Joined: Sun Jan 17, 2010 6:57 am

Re: Hai guys I got some error hope someone could help me

Post by omgimstupid »

Ow for al this time i thought semiclon was the " thanks for reminding me :)
omgimstupid
Forum Newbie
Posts: 6
Joined: Sun Jan 17, 2010 6:57 am

Re: Hai guys I got some error hope someone could help me

Post by omgimstupid »

auch still not fixed yet :(

Code: Select all

Warning: session_start() [function.session-start]: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/23\sess_89d0207366a5da89ad707bb749a82976, O_RDWR) failed: No such file or directory (2) in C:\AppServ\www\admin\enter\index.php on line 2
 
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\admin\enter\index.php:2) in C:\AppServ\www\admin\enter\index.php on line 2
 
Warning: Unknown: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/23\sess_89d0207366a5da89ad707bb749a82976, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
 
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/23) in Unknown on line 0
sorry for the double post
Post Reply