Advanced Minds

  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • red color
  • green color
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
php, referring page How to log visitors using PHP? (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: php, referring page How to log visitors using PHP?
#2709
deko (Visitor)
Click here to see the profile of this user
Birthdate:
php, referring page How to log visitors using PHP?  
Can someone point me to a sample _script_ that will log all visitors to my web site? I'm looking for a simple _script_ that will capture IP address, Host Name, Browser, OS, and referring page - and write that info to MySql. I've created a MySql data_base_ - visitors - with the columns mentioned above, but am fumbling trying to get started with PHP... any help is appreciated!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2710
deko (Visitor)
Click here to see the profile of this user
Birthdate:
php, referring page How to log visitors using PHP?  
am fumbling trying to get started with PHP... any help is appreciated!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2711
MyOdd (Visitor)
Click here to see the profile of this user
Birthdate:
php, referring page How to log visitors using PHP?  
What I still need is a way to get hostname, browser, OS, and referring page... Try and have a look at http://www.hot_script_s.com/, quite a few _script_s approach that subject. Also, have a look at getenv( HTTP_USER_AGENT ); that contains some of the info you need. Your main problem will be the OS and Browser, but if you look at the php _script_s they provide you will be well on your way. And why keep the IP BTW?, just curious really. Sims
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2712
deko (Visitor)
Click here to see the profile of this user
Birthdate:
php, referring page How to log visitors using PHP?  
I've looked at hot_script_s, but mostly an ocean of way too complicated _script_s... hard to navigate.  But I have found a few helpful things just by doing a web search. As for getenv( HTTP_USR_AGENT ); I tried this, but it did not work... <!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd <html <head <_title_Get Stats</_title_ <_meta_ http-equiv= Content-Type content= text/html; charset=iso-8859-1 </head <body <?php print getenv( HTTP_USR_AGENT ); ? </body </html
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2713
CountScubula (Visitor)
Click here to see the profile of this user
Birthdate:
php, referring page How to log visitors using PHP?  
am fumbling trying to get started with PHP... any help is appreciated! Forgive me, I may be missing something, but just parse the server logs. its all there. less load on server instead of making db connection/writting data/closing connection for every page
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2714
deko (Visitor)
Click here to see the profile of this user
Birthdate:
php, referring page How to log visitors using PHP?  

Forgive me, I may be missing something, but just parse the server logs. its all there. less load on server instead of making db connection/writting data/closing connection for every page
I agree, but I don't have access to the server logs - it's a shared hosting environemnt...
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
no auth authorization failed sprawdz autoryzacje 905 brak autoryzacji
press release distribution service submit press release clmlogic com marietta memorial hospital dive play