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)
-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!
ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM:
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,
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 code
3 matches
Mail list logo