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
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
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
: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)
so I
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!
--
- The
--- 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 DB and
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 where
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 ;-):
8 matches
Mail list logo