Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP for User Logging (and my first post!)

Status
Not open for further replies.

RocketBob

Technical User
Feb 12, 2005
2
CA
Hi!
This is my first post here, so please help me out!

I'm trying to find a way to log to my server, the username the client is using.

I'm pretty sure this can be done, because I can find scripts that say "Hi, you're using Mozilla, your username is Bob, you're using Win2k" etc etc etc. I just want to log this to my server in a text file.

I've been trying to wrap my head around PHP, because while I've been searching, I've found a few scripts that seem to come very close. However, I can't find one that actually grabs the username. Most of them just get the IP.

Standard IIS logging isn't working for me, because it doesn't pull the username through a firewall, only an IP, so I get bupkus.

Ideally, when someone browsed a page, I would get a log entry of the time, their IP, username, and computer name.

Can anyone help me out, or point me in the right direction? I don't really care what I use to get it, PHP just seems to be the most flexible choice so far...

Thanks!
Bob
 
read the manual about phpinfo(). If you look at the output of phpinfo() it will be obvious how to get the information you need.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top