You can also use ini_set() in a script to change the directory for that specific script. However, as others have stated, the directory must exist and the Apache user must have permission to write to it. I don't know if ini_set() is any more/less secure than changing the php.ini file. I only know it works.
Rich > -----Original Message----- > From: Daniel Clark [mailto:[EMAIL PROTECTED] > Sent: Friday, April 09, 2004 11:40 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] Session_Start won't work Help? > > > In PHP.INI there is a variable session.save_path. > Make sure it's uncommented and has a directory to store the > temp session > files on the web server. > > > > I'm running Apache/2.0.49 and PHP/4.3.5 on windows XP. I > get warnings: > > > > WARNING: session_start(): > open/tmp\sess_242f6f668d85d512f9f4379ffa1e1, > > O_DWR failed: No such file or directory (2) in c:\program > files\apache > > group\apache2\htdocs\register_new.php on line 10 > > > > I also get another similar warning for seesion start that > says cannot send > > seesion cookie and another that says cannot send session cache. > > > > Is this some sort of configuratrion problem in my > httpd.cong file or my > > php.ini file? HELP? > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php