"; # Then we'll make a unique hash... $UniqueHash=bin2hex(md5($UniqueFileID)); # DEBUG # print "

"; # Lock the file. $FilePointer=fopen($CounterFile,"r+"); flock($FilePointer,LOCK_EX); # Read in the values in the counter file. while ($FileCount = fscanf ($FilePointer, "%s\t%s\n")) { list($HashID,$Count)=$FileCount; $CountHash[$HashID]=$Count; } # Increment the number of accesses to the counter file. $CountHash[$UniqueHash]=$CountHash[$UniqueHash]+1; # Rewind to the beginning of the file rewind($FilePointer); # Iterate through each element of the hash and write it to the file. # By dropping all the hashes into an array. $CountKeys=array_keys($CountHash); # Step through the array to write them to the file. foreach($CountKeys as $TheKey) { fwrite($FilePointer,"$TheKey {$CountHash[$TheKey]}\n"); } # Unlock and close the file. flock($FilePointer,LOCK_UN); fclose($FilePointer); # print out the result. # print "This page has been accessed {$CountHash[$UniqueHash]} times."; ?>

A Catalog of Visual Astronomy Accessories from







(click on an image for more information on an item)

2" to 1.25" adapters
Astronomical Adapter 2-inch to 1.25-inch
Eyepiece Extensions
1.25" eyepiece extensions
par focal rings
2-inch ParFocal
Parfocal Rings that clamp in place 2-inch & 1.25-inch
A scope cover that lasts! -- Nite's Cape(sm)
Telescope Covers.
I Spy(SM) WEBCam Adapters
WEBCam Adapters
Accessories & Necessities

Denim Shirts

The Nite I's Return Policy

Return to Nite I's Home Page