addslashes vs escapeshellcmd

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Overunner
Forum Newbie
Posts: 9
Joined: Sat Dec 13, 2003 5:28 am

addslashes vs escapeshellcmd

Post by Overunner »

Hello...

I am currently working on a 'secure' login script and wonder if it is more secure to query the database with a 'slashed'-variable, or an 'escaped'-variable.
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Maybe with a <db>_escape_string() like mysql_escape_string() ?
Post Reply