Re: [PHP] Filesystem or database

2006-05-01 Thread Jochem Maas
Richard Lynch wrote: On Mon, May 1, 2006 7:13 am, Ryan A wrote: ... You *CANNOT* assume IP address has *ANYTHING* to do with what user is there! IP address is USELESS for identification/authentication of users in an HTTP environment. with one caveat (I standing by to be shot down ;-): wh

Re: [PHP] Filesystem or database

2006-05-01 Thread Richard Lynch
On Mon, May 1, 2006 7:13 am, Ryan A wrote: > basically, I get the username and ip of a person who > logs into a remote site and i have to save this data > (please note that this would be thousands of logins) > so I was wondering if it would be better to save the > username and ip as an empty file w

RE: [PHP] Filesystem or database

2006-05-01 Thread Ryan A
--- Peter Lauri <[EMAIL PROTECTED]> wrote: > This is what databases are made for, so my > suggestion is to use the > database. And when you say: "please note that this > would be thousands of > logins", is that per second or minute or hour or > day? > > /Peter Hey, Ok, thats two points for the

Re: [PHP] Filesystem or database

2006-05-01 Thread Ryan A
> Also, try using mysql_pconnect rather than > mysql_connect to set up a > persistent database connection. >From what I have read and asked around, persistant connections are more of a pain in the @ss than a help...esp in a shared hosting environment. Thanks for responding though! -- -

RE: [PHP] Filesystem or database

2006-05-01 Thread Peter Lauri
y 01, 2006 7:14 PM To: php php Subject: [PHP] Filesystem or database Hi, This is just a quick query as I am bit doubtful of the result.. basically, I get the username and ip of a person who logs into a remote site and i have to save this data (please note that this would be thousands of logins

Re: [PHP] Filesystem or database

2006-05-01 Thread Dave Goodchild
Also, try using mysql_pconnect rather than mysql_connect to set up a persistent database connection. On 01/05/06, Wolf <[EMAIL PROTECTED]> wrote: Personally I would do the DB option and timestamp that sucker as well. I use it to set/copy :IP, user, SessionID, timestamp. I found it simpler and

Re: [PHP] Filesystem or database

2006-05-01 Thread Wolf
Personally I would do the DB option and timestamp that sucker as well. I use it to set/copy :IP, user, SessionID, timestamp. I found it simpler and easier as I was already using the database anyways, so another call to it was not going to kill me. And with having the timestamp in the field as wel

[PHP] Filesystem or database

2006-05-01 Thread Ryan A
Hi, This is just a quick query as I am bit doubtful of the result.. basically, I get the username and ip of a person who logs into a remote site and i have to save this data (please note that this would be thousands of logins) so I was wondering if it would be better to save the username and ip as