|
SiteMap
| Mobile
| Departments
| Commisioners | Jobs
| ACResources.org
| Online Services
| GIS
| Phone Directory
| Economic Dev
|
|
|---|---|
| Website compatible with these. Best resolution 1024 x 768 +. |
function counter()
{
$counter = "counter.txt";
//we assign our file name to the variable we'll use to handle it
if(file_exists($counter))//if the file exists
{ //we run our counter script
$var = fopen( $counter,'r+');
//opens in read and write mode our file
$visits = fread($var,filesize($counter));
//puts the content of the file for its whole lenght
rewind( $var );
//resets the file position indicator to the beginning
$visits++; //increments the actual number of vists by 1
fwrite($var, $visits);
//writes on the variable the actual (incremented) value
fclose($var);//closes our file reference
}
else
{
print "File $counter doesn't exist...";
Die();
//if the file doesn't exist prompts a warning and kills the script
}
$message = sprintf("We've had %s page views.",$visits);
//saves our visits message in a variable ($message) that will be used as output
echo $message;
}
counter();
$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$finish = $time;
$totaltime = ($finish - $start);
printf (" Page load time %f seconds.", $totaltime); ?> © www.AlexanderCountyNC.gov 2003-2007 |
Click Here To See Minutes & Agendas
Harold Odom
Harold Odom and his wife Linda reside in the
On
|
||

Latest News