BlameThePixel!

BTForum » BlameTheOffTopic Forums » BlameTheGeneralOffTopic » me&php

Page: [] [2]
[]Archamond
Statusless? Maybe
Send PM
An Avatar
Posts: 1825
Threads: 123
Mood: meh
Money: £422.09 (D)
User Tax: 5%
(+ Friend)
Not online within the last half an hour

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
An Avatar
Posts: 1970
Threads: 50
Mood: Optative
Money: £268.57 (D)
(+ Friend)
Not online within the last half an hour
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]
[S]Zogger!
Looking For Status
Send PM
Posts: 3954
Threads: 62
Money: £93.82 (D)
(+ Friend)
Not online within the last half an hour
That's hardly a bug :P, 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]
[UA]tundraH
Statusless
Send PM
Posts: 566
Threads: 20
Money: £1.26 (D)
(+ Friend)
Not online within the last half an hour
Superglobals make more sense IMO. The reason for register_globals being off by default is explained in the PHP manual.

\n
<?PHP\
// 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
An Avatar
Posts: 1970
Threads: 50
Mood: Optative
Money: £268.57 (D)
(+ Friend)
Not online within the last half an hour
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]
[S]CBWhiz
Looking For Status
Send PM
Posts: 1044
Threads: 130
Money: £1343.20 (D)
(+ Friend)
Not online within the last half an hour
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
An Avatar
Posts: 1970
Threads: 50
Mood: Optative
Money: £268.57 (D)
(+ Friend)
Not online within the last half an hour
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
An Avatar
Posts: 1825
Threads: 123
Mood: meh
Money: £422.09 (D)
User Tax: 5%
(+ Friend)
Not online within the last half an hour

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]
[S]Zogger!
Looking For Status
Send PM
Posts: 3954
Threads: 62
Money: £93.82 (D)
(+ Friend)
Not online within the last half an hour
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: [] [2]

Post Reply

Jump To:


Your Comments:

Donate to BlameThePixel:
Donate to BTP Via PayPal


[22 Queries, Page Loaded in 0.257936 Seconds]

ShoutMeUp

Xmas Greetings from waka waka waka waka []Unvalidated EmailChristmasRiddle MERRY CHRISTMAS EVERYONE! []Spleet Except for Spleet. []TheAbdBoy Always bummin' a brother out. []Spleet Happy New Year everyone! But Spleet. []TheAbdBoy

Word Association

All

-10 Ago-

MiddleEastern []AlphaWolf camel [S]Bloopy toe []TheAbdBoy moose knuckle [S]Bloopy MeatLoaf []Spleet IdDoAnything4Lo ve []AlphaWolf rub n tug []TheAbdBoy tugboat []The Pope rope [S]Bloopy race []TheAbdBoy

-Latest-


Must be logged in to add new words

FictoLeague

You have to be logged in to vote...

Member Stats

Date: 24.11.24.
Members: 4731.
Latest: []Unvalidated Emailsdsakldsaldklasdsdsa
Active:
0 user(s)
1 guest(s)

On chat:
Lots of people

Files: 3330

Bloopy's Site
Get Firefox Get Opera Donate to BTP Via PayPal