Webmaster Resource Area Home | Site Hosting | Design | Marketing | Domain Name Registration
NewCreations Network
Install Access Counters |
|
Click
here if you're seeing this without frames |
|
The Server Side Include for the Counter The HTML source below represents the server side include necessary to call the counter CGI. <!--#exec cgi="/cgi-bin/c4.pl" -->
The Source Code for the Counter The counter script, c4.pl, is written by Jonathan Lewis, and is pre-installed for all NewCreations Customers. If you are unfamiliar with the CGI standard, or would like to learn more about the Common Gateway Interface, the following URL is an excellent resource: http://hoohoo.ncsa.uiuc.edu/cgi/
How to Install the Counter To install the counters you will need to follow these steps:
1.The counter script is pre- installed in the common cgi-bin
directory for all users. 2.In notepad, or another text editor, create a file called .htaccess in the same directory where the HTML with the server side include is to reside. (Important: Be sure and call it .htaccess not .htaccess.txt or htaccess.txt) The .htaccess file should look like: Options Indexes FollowSymLinks Includes AddType application/x-httpd-cgi .cgi
addType text/x-server-parsed-html .html 3.In notepad, or another text editor, create a file with the same "basename" as your .html file that you plan to put the counter on, but with the extension .count, rather than .html. For example, for index.html, you would create a file by the name of index.count. Put this file in the same directory as index.html. In this file put the beginning count in it (i.e. "0", or the number from the counter at your old server, if you're moving your site.) 4. Then with your ftp software (WSFTP works great) chmod the .count file 777. If you don't know how to chmod a file, and don't care to learn, email support@newcreations.net and we'll do it for you.
Here's how: in WSFTP, you highlight the file, then right click on it, and
you'll see a menu. One of the options on that menu is chmod(UNIX) -
select that option. You'll see a popup window with 9 check boxes - check
all 9, and hit the "ok" button. Voila! Your file is chmod 777. 5.In your .html file put something like the following in the BODY section:
<!--#exec cgi="/cgi-bin/c4.pl" -->
6.Reload your web page and see if it works. Contact
support@newcreations.net if it doesn't. 7. Common Question: Do you know of any way to control the text font or size in the c4.pl script? You would do that in your html source, just like you'd change font size in regular text. For example <B><BIG>Welcome! You are visitor #<!--#exec cgi="/cgi-bin/c4.pl" -->!</BIG></B> gives you:
Welcome! You are visitor #
!
If you aren't a customer,
SIGN
UP!
(but feel free to use
the resources here regardless...)
|
Webmaster
Resource Area Home |
Site Hosting |
Design |
Marketing |
Domain Name
Registration
All text and graphics © NewCreations 1996, 1997
Last Updated: 6/17/97
Please report problems to the Webmaster:
webmaster@newcreations.net
NewCreations Network - www.newcreations.net