More Questions Than Answers

Dan Atrill's blog site

New site

There’s a fantastic new site which has just gone live for singer/songwriter and man of many talents, Richard Couldrey. At present it’s hosted at the same place as faq-it, but it can be accessed at www.richardcouldrey.com
Richard will shortly be taking delivery of the mechanism which will allow him to update articles and post pictures from [...]

more... »

Sat, July 10 2004 » Web developing » No Comments

Text Hit Counter

I was looking for a counter and found this, courtesy of the PHP Freaks:
<?php
//First create a file to store the hits. Make sure this file has write permission
$counternum = “counternum.txt”;
//Open the file and write the current hits plus one.
function displayCounter($counternum) {
$fp = fopen($counternum,rw);
$num = fgets($fp,9999);
fclose($fp);
$fp = fopen($counternum,w);
$num += 1;
print “$num”;
fputs($fp, $num);
fclose($fp);
}
//Display the Current Hits
displayCounter($counternum);
?>

more... »

Sat, July 3 2004 » Web developing » No Comments