The time now is 12/04/08 - 18:33
Log in: Username: Password:
Search forums for:
  

wow php is p*****g me off today

Post new topic   Reply to topic
Author Message
Occulis
RealPoor Jedi
RealPoor Jedi


Joined: 11 Oct 2002
Posts: 13293
Location: Moral Relativity Central



PostPosted: 02/23/03 - 15:05    Post subject: wow php is p*****g me off today Reply with quote

I'm trying to be a good boy and do everything with register_globals off. $_GET and $HTTP_GET_VARS however are no longer receiving GET data from the URL.

For instance...

http://localhost/index.php?f**k=10

This should set $_GET['fuckyou'] equal to 10.

Does it? Nope.

How about $_SERVER['fuckyou'] or $HTTP_GET_VARS['fuckyou']? Nope.

Register globals set off may make the site more secure but people can forge cookies, send false POST data, etc., if they really want anyway.

Anyone have similar php problems with register globals? This is version 4.3+
Back to top
Tanaren
Luke Warm
Luke Warm


Joined: 11 Oct 2002
Posts: 210



PostPosted: 02/23/03 - 17:33    Post subject: Reply with quote

Quote:
http://localhost/index.php?f**k=10

This should set $_GET['fuckyou'] equal to 10.

Typo? That would set "f**k" equal to 10.




Try this:

for the URL: http://localhost/index.php?fuckyou=10

code:
extract($HTTP_GET_VARS);
echo "$fuckyou";
Back to top
Mental_Hernia
RealPoor Guru
RealPoor Guru


Joined: 14 Oct 2002
Posts: 3336
Location: Texas



PostPosted: 02/23/03 - 17:40    Post subject: Reply with quote

What the [fuck10] are you talking about
Back to top
khrath
Guest







PostPosted: 02/23/03 - 17:48    Post subject: Reply with quote

add this somewhere, to like a header or something that will stay constant.

foreach($_GET as $key => $fuckyou){$$key = $fuckyou;}

then use $fuckyou instead of $_GET['fuckyou']
Back to top
Occulis
RealPoor Jedi
RealPoor Jedi


Joined: 11 Oct 2002
Posts: 13293
Location: Moral Relativity Central



PostPosted: 02/23/03 - 17:49    Post subject: Reply with quote

the problem was there were 0 keys in _GET.

:p
Back to top
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1

Related topics:
WTB WoW Timecard I offer Runescape Pure and 63 BE Mage
WTT my steam account for a Wow account lvl 58 higher
WTS my wow account 3 70s mage/warlock/druid
WTT or WTS wow glider key!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WTS 3x 60s WOW account Alliance/Horde rp/pvp
WTS WoW account
WTT Vangurd for WoW
Trading my Runecape GP for WoW account/gold
WOW Powerleveling Professional Company
2x LvL 70 WoW account
WTT High End GW account for WoW account
i am a lvl 7RS account for a blank wow account
[WoW] WTS 60 Tauren Warrior (Awesome Gear)
Anyone Lookin' to buy a WoW account?
WTB WoW Accounts *Repost*
WoW 60 Paladin PvE + 60 Rogue PvP SAME ACCOUNT
WTT lvl 100 runescape account for any 60+ wow account
Looking to buy WoW accounts!!!
selling WoW acc, lvl 48 gnome rogue + 2 months play time
WTT 1-2 WoW US accts for Magic cards Details inside
People are pissing me off as of late.
Neighbors pissing you off?
Iraq pissing me off again