Frustrating TT-Forums.net - Graphics overview

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

User avatar
orudge
Administrator
Administrator
Posts: 25218
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

Much of PHP's insecurities come from, as you say, people not being careful about what they include, or how they use their variables. For example:

mysql_query("SELECT * FROM kak WHERE x = $hello");

where $hello is just picked up from the query string. (It's good practice to turn register_globals off now). An alternative is just doing something like:

include("$page");

from a page referenced as blah.php?page=hello or something.

Anyway, that's off-topic, but if you program in PHP, take note of these things.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 23 guests