Page: [1] [2] |
Archamond
Statusless? Maybe Send PM
Posts: 1825
Threads: 123 Mood: meh Money: £422.09 (D) User Tax: 5% (+ Friend)
|
Ofcourse, this is not porn
that i should put
....?> in every code , and
this turtorial is kinda baggy, so i will need to find another one
|
20.03.04 08:38 Post #16 | [ArchamondCOM ] [Hide Sig (20)] [Profile] [Quote] |
Dingbats
; Send PM
Posts: 1970
Threads: 50 Mood: Optative Money: £268.57 (D) (+ Friend)
|
Do you mean the bug with $name instead of $_GET["name"] that I helped you with?
|
20.03.04 14:35 Post #17 | [Softbrain Games] [Hide Sig (2)] [Profile] [Quote] |
Zogger!
Looking For Status Send PM Posts: 3954
Threads: 62 Money: £93.82 (D) (+ Friend)
|
That's hardly a bug , just been disabled for some reason...
?
________________
You know I'm a dancing machine |
20.03.04 15:20 Post #18 | [Hide Sig (8)] [Profile] [Quote] |
tundraH
Statusless Send PM Posts: 566
Threads: 20 Money: £1.26 (D) (+ Friend)
|
Superglobals make more sense IMO. The reason for register_globals being off by default is explained in the PHP manual.
\n
<?PHP\n
// define $authorized = true only if user is authenticated
if (authenticated_user()) {
$authorized = true;
} <br />
// Because we didn't first initialize $authorized as false, this might be
// defined through register_globals, like from GET auth.php?authorized=1
// So, anyone can be seen as authenticated!
if ($authorized) {
include "/highly/sensitive/data.php";
}
\n?>
\n
Might be a bit obscure, but it makes sense really... people who know what they're doing and aren't going to make bad code can turn it back on.
|
20.03.04 17:19 Post #19 | Last edited: 20.03.04 17:21 (tundraH - 1 times) |
[tundraH.com] [Hide Sig (0)] [Profile] [Quote] |
Dingbats
; Send PM
Posts: 1970
Threads: 50 Mood: Optative Money: £268.57 (D) (+ Friend)
|
Aha. So that's why. Well, why use register_globals when the other thingies (what are they called?) so obviously mark where their values come from?
|
20.03.04 18:08 Post #20 | [Softbrain Games] [Hide Sig (2)] [Profile] [Quote] |
CBWhiz
Looking For Status Send PM Posts: 1044
Threads: 130 Money: £1343.20 (D) (+ Friend)
|
Exactly - register globals sucks.
if you dont care where data comes from use $_REQUEST['name']
|
20.03.04 21:13 Post #21 | [Hide Sig (3)] [Profile] [Quote] |
Dingbats
; Send PM
Posts: 1970
Threads: 50 Mood: Optative Money: £268.57 (D) (+ Friend)
|
Thanks for telling us that, CBWhiz. Dunno if it's useful, though. But I'm a newb, so I bet you know better.
|
21.03.04 09:09 Post #22 | [Softbrain Games] [Hide Sig (2)] [Profile] [Quote] |
Archamond
Statusless? Maybe Send PM
Posts: 1825
Threads: 123 Mood: meh Money: £422.09 (D) User Tax: 5% (+ Friend)
|
Ofcourse, this is not porn
is there any1 on this site who dont know php?
|
21.03.04 10:12 Post #23 | [ArchamondCOM ] [Hide Sig (20)] [Profile] [Quote] |
Zogger!
Looking For Status Send PM Posts: 3954
Threads: 62 Money: £93.82 (D) (+ Friend)
|
meh, you've just gotta be a bit more careful, tis' all. It's more convenient to code with them on.
________________
You know I'm a dancing machine |
21.03.04 11:40 Post #24 | [Hide Sig (8)] [Profile] [Quote] |
Page: [1] [2] |
Your Comments: