X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id E5A41D1D1E1 for ; Thu, 29 Apr 2004 08:31:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 11800-08 for ; Thu, 29 Apr 2004 08:30:46 -0300 (ADT) Received: from obie.mrkdns.com (obie.mrkdns.com [69.93.72.82]) by svr1.postgresql.org (Postfix) with ESMTP id 99DD0D1CA32 for ; Thu, 29 Apr 2004 08:30:43 -0300 (ADT) Received: from [213.152.63.90] (helo=chuckie.co.uk) by obie.mrkdns.com with asmtp (Exim 4.30) id 1BJ9kc-0003cb-24; Thu, 29 Apr 2004 12:30:46 +0100 Message-ID: <4090E75E.6060206@chuckie.co.uk> Date: Thu, 29 Apr 2004 12:30:38 +0100 From: Nick Barr User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ludwig Lim Cc: PostgreSQL Mailing List Subject: Re: Question regarding session References: <20040429111436.62957.qmail@web90006.mail.scd.yahoo.com> In-Reply-To: <20040429111436.62957.qmail@web90006.mail.scd.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - obie.mrkdns.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - chuckie.co.uk X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/60 X-Sequence-Number: 2717 Ludwig Lim wrote: >Hi: > > I have a question regarding PHP session >I change the setting : > > session.save_handler = files; >to > session.save_handler = user; > >I got the following error message everytime run >php (even If I tried it at command line) > > PHP Fatal Error: Unknown(): Failed to initialize >session module in Unknown on line 0 > > Even if I tried it command line without any >argument, an error still occured. > > >PHP version : 4.3.1 >O.S. : Mandrake 8.0 > >Thank you, > >ludwig lim > >ludwig > > > This is a bit OT for Postgres. However do you not need to set the session handlers because you have kicked php session into user mode. You need to call session_set_save_handler with a list of strings which match functions. These functions then open, close, read, write, destroy and do garbage collection stuff on the session stuff. See: http://uk.php.net/manual/en/function.session-set-save-handler.php for more information. Nick