How To...


How do I add a page counter ?
To use the built-in page counter, you must create a file in the tmp directory of the Sambar Server installation. The file should initially contain the character 0 (you'll find the files tmp/index and tmp/samples corresponding with the two counters found in the Sambar Server samples. Each time the page with a counter is referenced, the counter in the file is incremented. To create a new counter, we'll call foobar and place it on a new page foobar.htm, we simple create a file called foobar in the tmp directory and then insert the following where we wish the counter to appear:

<IMG SRC="/session/pagecount?page=foobar">


Copyright 1997 Sambar Technologies