PX : code

Simple Text Counter by Nooper
Download this code


<?php
    
if (file_exists('count_file')){
        
$fil fopen('count_file''r+');
        
$dat fread($filfilesize('count_file'));
        
$counted $dat+1;
        
fwrite($fil$counted);
        
fclose($fil);}
    else{
        
$fil fopen('count_file'w);
        
fwrite($fil1);
        
$counted 1;
        
fclose($fil);}
    echo 
"You are visitor #"$counted;
php?>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.