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 dotcommie 2005-02-14 06:19:19
$_SERVER["SCRIPT_FILENAME"] is much better in this case then $REQUEST_URI.

If you load a page with other variables in the get address these variables will show up in request_uri. For example http://example.com/coolpage.php?hello=world, in this case $REQUEST_URI would return coolpage.php?hello=world. SCRIPT_FILENAME would instead return coolpage.php

Correct me if I am wrong, I am kind of in a rush to get to class.
[ Reply ]
      $_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

 

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