>Is it possible to make a website counter with a PHP script and a text
>document? If so can somebody email me a script (unlikely) or send me to a
>page with a script (yay)
freshmeat.net and sourceforge.net are great sources for scripts..
Be carefull not to use anything you see.. check the cod
It is easy, but you need to have write privileges on that file
(or rather httpd needs that) - so you may include a test that
this file only holds a number as a minimal protection.
$filename = "$GLOBALS[DOCUMENT_ROOT]/your_counter.txt";
$fp = fopen($filename,"a+");
$cnt = fread( $fp, filesize($fil
2 matches
Mail list logo