[thelist] server side page push to every nth user?

Kevin D. White nonzero at well.com
Wed Jan 23 14:51:33 CST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Would be easier to just create and incement a counter in a server
script.  
Store the counter in a flat file or a db somewhere.  That way
everytime the server script is processed the counter get's
incremented.

Total HTTP request count would be the wrong way to go since every
page element (HTML, Javascript file, CSS file, Image,....) requires a
seperate request.  And you'd have to watch every request.

This can be done pretty easily in any server script language. 
Regardless of platform.  Just look up terms like: ODBC, File Read,
File Write, Database Insert Record, Database Select Record.

Another way would be to forget about counting and just use a random
number generator to determine if the pop-up is served or not.  This
could be done client or server side.  Just check into Random or Rand
functions for your favorite scripting language.

- ----- Original Message ----- 
From: "David Caplan" <dcaplan at fusebox.com>
To: <thelist at lists.evolt.org>
Sent: Wednesday 2002 January 23 13:28
Subject: [thelist] server side page push to every nth user?


> Does anybody know how I might pop-up a page to every nth user based
> on the total number of http requests to the web server. I would
> like to do this pop-up purely from a server side point of view, no
> javascript in the page. I know I am not specifying server type, but
> I'll take what I can, IIS or Apache would be fine.
> 
> Thanks,
> 
> Dave
> 
> David Caplan
> --------------------------------------------------------------------
> -------- 36 w 20 st  |  nyc 10011  | 646.485.9136 | www.fusebox.com
>  |
> 
> 
> 
> -- 
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt ! 

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPE8iYakcrjXY5do7EQLQpgCgvxUI8OQpvl7dIG6DuGqMQMe5i1sAoOLd
hQ/Y7OLa08Q2ZgNl55GV5ZVO
=Avxv
-----END PGP SIGNATURE-----






More information about the thelist mailing list