RE: [PHP] PHP on IIS session problems

From: Date: Mon, 03 Mar 2003 17:54:35 +0000
Subject: RE: [PHP] PHP on IIS session problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137918@lists.php.net to get a copy of this message
Ok, thanks guys for your help, I sort of figured that's the problem, but I didn't want to touch the ini settings without being sure, and getting some advice from people that know. Thanks again, great help. I made the changes, now how do I restart php? So the changes are used? - Vic -----Original Message----- From: 1LT John W. Holmes [mailto:holmes072000@charter.net] Sent: Monday, March 03, 2003 10:23 AM To: Victor Stan; php-general@lists.php.net Subject: Re: [PHP] PHP on IIS session problems > I get these errors from a simple "session_start();" script. > > Warning: session_start() [function.session-start]: > open(/tmp\sess_f4aa3ef3c537bb6327d5e7b991e91be7, O_RDWR) failed: No such > file or directory (2) in c:\inetpub\wwwroot\picoblog\admin.php on line 2 Do you have a /tmp folder on your computer? Probably not, so that's why PHP is throwing a warning, because it can't write to a directory that doesn't exist. > Warning: session_start() [function.session-start]: Cannot send session > cookie - headers already sent by (output started at > c:\inetpub\wwwroot\picoblog\admin.php:2) in > c:\inetpub\wwwroot\picoblog\admin.php on line 2 > > Warning: session_start() [function.session-start]: Cannot send session cache > limiter - headers already sent (output started at > c:\inetpub\wwwroot\picoblog\admin.php:2) in > c:\inetpub\wwwroot\picoblog\admin.php on line 2 These are just by-products of the first error. Set your session.save_path setting in php.ini to a folder that IIS can write to. ---John Holmes...

« previous php.general (#137918) next »