[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-users] ongoing problem with Chat

From: Brett Shadbolt
Subject: Re: [Phpgroupware-users] ongoing problem with Chat
Date: Thu, 13 May 2004 10:26:19 +0000

Unfortunately our hosting service is running php in cgi mode and you cannot
use .htaccess to modify any parameters otherwise you get a server error. The
following is taken directly out of the php.ini file for our server:

PHP looks for it in the current working directory, in the path designated by
the environment variable PHPRC, and in the path that was defined in compile
time (in that order).

I have tried just putting a modified php.ini in the document root directory
but it seems that this is not recursive - i.e. php.ini must be physically in
every directory which contains a php script. I agree it seems ridiculous but
it now works when it didn't before.

Anyway my problem now is that Chat is finding the session data but reporting
an error for session files which contain no data - any ideas on this?


Brett Shadbolt

Chris Weiss wrote:

> I think all you need is one htaccess file in your web root to override the
> php.ini settings. Having a php.ini all over the place like that sounds way
> error prone. If you're running php in cgi mode I don't know if the .htaccess
> will work but there's certainly a better way than ini's all over.

Brett Shadbolt (address@hidden) wrote:
> Hi guys,
> I have been having problems with Chat and session management.
> I think I have sorted out the session management problems - I have had to
copy a custom
> php.ini file to every directory that contains a php script in to ensure that
it is
> looking for/saving session data into my own tmp directory (rather than the
server wide
> /tmp - I am on a hosted system).
> I now appears that session data is being saved in the correct directory and
each phpgw
> APP is looking in the correct directory.
> My problem now is that phpgw creates 2 session files each time I log in - 1
has data the
> other seems to be empty (0 bytes). Chat reports this as an error as follows:
> Warning: fread(): Length parameter must be greater than 0. in
> /home/bretts/phpgw/phpgwapi/inc/ on line 216
> Also, after phpgw exits, these session files remain in the directory but all
of them are
> empty (0 bytes) so after multiple logins I have a whole list of these errors
coming up.
> Could chat be modified to exclude session files of zero length?
> Cheers,
> Brett

reply via email to

[Prev in Thread] Current Thread [Next in Thread]