Access counter for Web page

The attached subprogram NWCNT maintains an access counter (“visitors”) for a Natural Web program (i.e. for a Web page).

The counter is saved in a text file in the RES (resources) sub-directory of the current library. The name of the counter/text file is given by the caller. By default the counter is increased by “1” at each call. Options are available to read the counter, to reset it or to set it to a given value.

The program runs under Natural 6.2 (Windows). The Natural Web Interface must be installed because the program uses subroutines of the SYSWEB3 library.

Unzip the member and copy it into a Natural library (from Windows explorer into the Natural Studio).
NWCNT.zip (1.23 KB)