[thelist] php session_start() function

Dejan Kozina dejan at kozina.com
Sun Apr 9 01:56:06 CDT 2006


You should make a copy of php.ini-dist somewhere in your path (like 
c:\windows), rename it to php.ini and edit this one.

djn

Santilal Parbhu wrote:
> Thanks.
> 
> That sounds like the answer all right.  However, I can't seem to be able to
> change the php.ini file.  I have searched for php.ini and I came up with
> three hits.
> 
> One was called just php, one called php.ini-dist, and the third was also
> called just php.  The first two were in a directory called c:\Program
> Files\Abria Merlin\Php, while the third was in a file called c:\Program
> Files\Abria Merlin\Php/pear/tests.  I am using Abria Merlins apache server.
> The third file just looks like a batch file.  The first two are about the
> same size - about 25kB.
> 
> I edited the first two files to make session.save_path c:\window\temp, and
> rebooted my PC, but when I ran phpinfo(), I found that the seesion.save_path
> was still /tmp.
> 
> So either I have edited the wrong php.ini file or it hasn't taken up the new
> configuration.  Any ideas on how to make it do this?
> 
> Thanks again.  These little quirks drive you insane.
> 
> Cheers
> 
> Santilal
> 
> 
> -----Original Message-----
> From: thelist-bounces at lists.evolt.org
> [mailto:thelist-bounces at lists.evolt.org]On Behalf Of misterhaan
> Sent: Sunday, 9 April 2006 9:11 a.m.
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] php session_start() function
> 
> 
> Santilal Parbhu wrote:
>> Warning: open(/tmp\sess_c27a0a85456411904f81baebeda8e71d, O_RDWR) failed:
> m
>> (2) in c:/program files/abria
>> merlin/apache/htdocs/gameon/pages/alexbasketball/login.php on line 93
>>
>> Line 93 is //Main
>> Line 94 is session_start();
>>
> Here it's trying to write to /tmp, which doesn't make much sense to
> Windows XP.  Edit your php.ini and change the temp directory setting to
> something that exists, like c:/windows/temp possibly.
>> I also get the error:
>>
>> Warning: Session object destruction failed in c:/program files/abria
>> merlin/apache/htdocs/gameon/pages/alexbasketball/login.php on line 109
>>
>> Line 109 is session_destroy();
>>
> It can't destroy the session because it was never able to create one.
> If this doesn't go away though, you can suppress the message using
> @session_destroy() instead of session_destroy().  This isn't really
> fixing the problem though -- it's just hiding the warning.
> --
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
> 
> 

-- 
Dejan Kozina
Dolina 346 (TS) - I-34018 Italy
tel./fax: +39 040 228 436 - cell.: +39 348 7355 225
http://www.kozina.com/  - e-mail: dejan at kozina.com



More information about the thelist mailing list