[PHP] Web site counter

2001-08-01 Thread Kyle Smith
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:

Re: [PHP] Web site counter

2001-08-01 Thread Werner Stuerenburg
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,

Re: [PHP] Web site counter

2001-08-01 Thread B. van Ouwerkerk
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