Contribution

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35568
interpreted = N
texte = Here is a free little script that you can drop in any page. I put it in my globals folder and include it on the sites I wanna run screen resolution stats. You may need to create a folder called screenlogs and you will need to adjust for [thisurl] if you are running on unix. It basically logs the: date time screenwidth screenheight pixeldepth colordepth browsername and the referrer. It also maintains any formvariables posted. Repeats are disallowed by use of a cookie. Run it for a week or so and then you can get a pretty good idea of the kind of browser capabilities your users are getting. I write the files into seperate logs based on domains, the logs can be read as databases. Enjoy!Sincerely,Robert Minor[text]sr_domain=[ListWords words=[GETMIMEHEADER HTTP_HOST]&delimiters=.][hideif [word]=com][hideif [word]=www][word][/hideif][/hideif][/ListWords][/text] [text]t_sl_id=[GetCookie [sr_domain]_id][/text] [Listwords words=[IPAddress]&delimiters=.][math show=f]ip_[index]=[word][/math][/Listwords] [text show=F&secure=F]sw=0[/text] [text]newip=[loop start=1&end=4][interpret][ip_[index]][/interpret][hideif [index]=4].[/hideif][/loop][/text] [hideif [t_sl_id]=T] [hideif [sw]=] [hideif [sw]>0] [/hideif] [showif [sw]>0] [SETCOOKIE name=[sr_domain]_id&value=T&path=/&domain=.[sr_domain].com] [appendfile file=^ScreenLogs/[sr_domain]-sl.db&secure=F][date] [time] [newip] [sw] [sh] [pd] [cd] [browsername] [t_referrer] [/appendfile] [hideif [fileinfo file=^ScreenLogs/[sr_domain]-sl.hdr][exists][/fileinfo]=T] [writefile file=^ScreenLogs/[sr_domain]-sl.hdr&secure=F]sl_date sl_time sl_newip sl_width sl_height sl_pixeldepth sl_colordepth sl_browsername sl_referrer [/writefile] [/hideif] [/showif] [/hideif] [/hideif] Robert Minor Director of Internet Services ------------------------------------------------------------ Cybermill Communications http://www.cybermill.com http://www.merchantmaker.comProviding Ecommerce and interactive website development and hosting services on Macintosh, Windows NT, Unix, and AS/400. ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Contribution (Glenn Busbin 2000)
  2. Re: Contribution (TWFT Mail 2000)
  3. Contribution (Bob Minor 2000)
  4. Conference? Heres my sniplete contribution! (The Mooseman 1998)
Here is a free little script that you can drop in any page. I put it in my globals folder and include it on the sites I wanna run screen resolution stats. You may need to create a folder called screenlogs and you will need to adjust for [thisurl] if you are running on unix. It basically logs the: date time screenwidth screenheight pixeldepth colordepth browsername and the referrer. It also maintains any formvariables posted. Repeats are disallowed by use of a cookie. Run it for a week or so and then you can get a pretty good idea of the kind of browser capabilities your users are getting. I write the files into seperate logs based on domains, the logs can be read as databases. Enjoy!Sincerely,Robert Minor[text]sr_domain=[ListWords words=[GETMIMEHEADER HTTP_HOST]&delimiters=.][hideif [word]=com][hideif [word]=www][word][/hideif][/hideif][/ListWords][/text] [text]t_sl_id=[GetCookie [sr_domain]_id][/text] [Listwords words=[ipaddress]&delimiters=.][math show=f]ip_[index]=[word][/math][/Listwords] [text show=F&secure=F]sw=0[/text] [text]newip=[loop start=1&end=4][interpret][ip_[index]][/interpret][hideif [index]=4].[/hideif][/loop][/text] [hideif [t_sl_id]=T] [hideif [sw]=] [hideif [sw]>0] [/hideif] [showif [sw]>0] [SETCOOKIE name=[sr_domain]_id&value=T&path=/&domain=.[sr_domain].com] [appendfile file=^ScreenLogs/[sr_domain]-sl.db&secure=F][date] [time] [newip] [sw] [sh] [pd] [cd] [browsername] [t_referrer] [/appendfile] [hideif [fileinfo file=^ScreenLogs/[sr_domain]-sl.hdr][exists][/fileinfo]=T] [writefile file=^ScreenLogs/[sr_domain]-sl.hdr&secure=F]sl_date sl_time sl_newip sl_width sl_height sl_pixeldepth sl_colordepth sl_browsername sl_referrer [/writefile] [/hideif] [/showif] [/hideif] [/hideif] Robert Minor Director of Internet Services ------------------------------------------------------------ Cybermill Communications http://www.cybermill.com http://www.merchantmaker.comProviding Ecommerce and interactive website development and hosting services on Macintosh, Windows NT, Unix, and AS/400. ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Bob Minor

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Copyfile to length limit for absolute paths (2003) OK, here goes... (1997) how to kill webcat ? (2002) Was 5.0 Pricing, now Sandbox versus Website and ruminating (2003) redirect with frames (1997) Major Security Hole (1998) osx or redhat and / or other (2005) setcookie getcookie on the same page (2003) [BULK] Fwd: [WebDNA] [BULK] WebDNA discovery in the Console - [having many crashes] (2011) RE: path hierarchy notation (1998) Did you hear about this? (1997) Close Databases Crash? (1998) [WebDNA] Friendly urls and multipart/form-data (2011) Initiating NewCart (1997) [ot] ShowIf & HideIf Question (1998) Archives (2002) RAM variables (1997) Unable to open the demo file (1998) About the cache management in Webstar V, under OS X (2002) Count regular expressions in a file (2007)