The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

PHP Counter Script... by richlondoner 2005-02-14 05:28:31
Not the usual single script which writes to one counter.txt file or whatever, what I need is a PHP script that writes to a unique file depending on what page the user is on... e.g....

default.php writes to defaultCounter.txt
personal.php writes to personalCounter.txt
news.php writes to newsCounter.txt

Etc etc etc Has to be a txt file it writes too...

I'm new to PHP and all I can find is the single counter text file. Anybody?

Thanks,
Rich
[ Reply ]
  Take the single text file counter and replace by Scirocco2005-02-14 05:38:59
  $REQUEST_URI is the page you're on... by saoi2005-02-14 05:56:52
    little improvement by dotcommie2005-02-14 06:19:19
      $_SERVER["SCRIPT_FILENAME"] - good call by saoi2005-02-14 07:24:38
        Better be careful by andyz2005-02-14 08:05:24
      That's a BIG improvement. by LionsPhil2005-02-14 08:11:46
        re: potentially arbitrary files by saoi2005-02-14 08:27:18
          Point. by LionsPhil2005-02-14 09:10:56
    Errors... by richlondoner2005-02-14 06:43:24
      Error lines... by richlondoner2005-02-14 06:47:01
  It has to be a text file? Can't use a database? by altordwm2005-02-14 06:22:02
    I'd agree w/ altordwm by saoi2005-02-14 06:43:03
  Got it working - woohoo... by richlondoner2005-02-14 07:09:34

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)