- Impact
- 0
I'm not going to explain the code, just what to change.
<?
$file=file("counter.txt");
echo ("<font color=#0c4c79 face=arial size=1>[$file[0]]</font>");
$fp=fopen("counter.txt","w");
fwrite($fp,$file[0]+1);
fclose($fp);
?>
The name of the file your counting in, in this case its in the same directory as the page
The colour of the number that will appear on the page
The font type that the numbers on the page will appear in
The size of the text, this is not in pixels. This is in "Microsoft sizes"
To include this into your website use SSI or PHP
SSI- <!--#include virtual="counter.php" -->
PHP- <?php include 'counter.php'; ?>
<?
$file=file("counter.txt");
echo ("<font color=#0c4c79 face=arial size=1>[$file[0]]</font>");
$fp=fopen("counter.txt","w");
fwrite($fp,$file[0]+1);
fclose($fp);
?>
The name of the file your counting in, in this case its in the same directory as the page
The colour of the number that will appear on the page
The font type that the numbers on the page will appear in
The size of the text, this is not in pixels. This is in "Microsoft sizes"
To include this into your website use SSI or PHP
SSI- <!--#include virtual="counter.php" -->
PHP- <?php include 'counter.php'; ?>









