What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » General Chit Chat » PHP RPG

Pages: (2): « First « 1 [ 2 ] Last »
PHP RPG
Author: Message:
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
RE: PHP RPG
quote:
Originally posted by WDZ
Do I see SQL injection vulnerabilities? :o

http://php.net/security.database.sql-injection
http://php.net/mysql_real_escape_string

:P


And how can you stand coding without syntax highlighting? [Image: deadbanana.gif]
Yeah get notepad++ it pwns.

btw if you need hosting then i have 250GB and 4TB of bandwith to use up.
with mysql db and all of that shiz :cheesy:
And i have another 2 servers i could put it on for you :P
02-15-2007 08:59 PM
Profile E-Mail PM Web Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: PHP RPG
ugh and also you can use different types of quotes eg

what you're doing
code:
echo "<a href=\"$i\"></a>";


you could just change the html attributes quotes to '

code:
echo "<a href='$i'></a>";


:D no messy escaping stuff then =p

also you do know you can stop php parsing and start it again right?

code:
<?php
if(isset($_POST['submit']) && $_POST['submit']){
?>
<form>
...input stuff...
</form>
<?php
}
?>

[Image: dt2.0v2.png]      Happy Birthday, WDZ
02-15-2007 09:07 PM
Profile PM Web Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
RE: PHP RPG
quote:
Originally posted by -dt-
ugh and also you can use different types of quotes eg

what you're doing

    code:
    echo "<a href=\"$i\"></a>";



you could just change the html attributes quotes to '

    code:
    echo "<a href='$i'></a>";



(Smilie) no messy escaping stuff then =p

Yay i do something right xD

Oh and even though -dt- has a point.
Only escape stuff if you've copied a lot of html code with " in it otherwise dont use them :)
02-15-2007 09:13 PM
Profile E-Mail PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: PHP RPG
Ewww... single quotes... :(

I never knew that was valid XHTML until I Googled it just now... :dodgy:
02-15-2007 09:19 PM
Profile PM Web Find Quote Report
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
37 / Male / Flag
Joined: Nov 2004
Status: Away
RE: PHP RPG
I thought it wasn't possible to write messier code than dt. I was clearly wrong :sad:
[

KarunAB.com
]

[img]http://gamercards.exophase.com/459422.png[
/img]
02-17-2007 09:49 AM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
O.P. RE: PHP RPG
EDIT: and aside from everything below... remember, I'm a coding noob :p

The escaping quotes was from the first book I was reading to learn PHP. The guy escaped EVERY quote rather than using different types (The book was poop anyway ¬_¬). I usually use single quotes for strings and double quotes for HTML stuff.

quote:
Originally posted by -dt-
also you do know you can stop php parsing and start it again right?
Yeah, but I don't want to keep using closing and opening tags when there isn't really an absolute need for it.

As for the MySQL stuff, I've not done anywork to validate stuff yet, and it's all using the root user until I get everything else sorted first (I can change it later *meh*).

Almost finished with all the foundations of it anyway now... Still got to build the shop and just add to the weapons, enemies, locations and stuff :p Then I'll make stuff neater ;)

Heres some more little shots of it (it's all PHP so far with one little thing in javascript):
[Image: s%5Fshot1.png] [Image: s%5Fshot2.png] [Image: s%5Fshot3.png]

As you can see... the pictures are pretty crap, so if anybody wants to help :p

This post was edited on 02-20-2007 at 03:07 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
02-20-2007 02:54 PM
Profile PM Find Quote Report
prashker
Veteran Member
*****


Posts: 5109
Reputation: 104
– / Male / –
Joined: Mar 2005
Status: Away
RE: PHP RPG
COOLIES :cheesy:!!!!!!!!!!!!!!!!!!!!!!!!
quote:
Originally posted by SpunkyLoveMuff
Almost finished with all the foundations of it anyway now... Still got to build the shop and just add to the weapons, enemies, locations and stuff (Smilie) Then I'll make stuff neater (Smilie)

Okies :).
02-20-2007 08:15 PM
Profile PM Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
31 / Male / Flag
Joined: Mar 2003
Status: Online
RE: PHP RPG
Looking great so far :)
Can't wait to try it out!
YouTube closed-captions ripper (also allows you to download videos!)
02-20-2007 09:24 PM
Profile E-Mail PM Web Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On