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 richlondoner2005-02-14 05:28:31
  $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 saoi 2005-02-14 07:24:38
and it's better practice.

As I said, it's a quick&dirty script, just written for an answer to the question. I almost never use clear variables in frontend scripts (it's always uri parsing) so I don't encounter those problems.

But anyway, no excuses. I forgot about $_SERVER. Doh! I always use $_POST and $_GET but somehow $_SERVER escaped my attention. Thanks for the reminder.
[ Reply ]
        Better be careful by andyz2005-02-14 08:05:24

 

[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.)