News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Chris Shiflett's Blog:
The addslashes() Versus mysql_real_escape_string() Debate
January 23, 2006 @ 06:46:32

In his latest blog entry, Chris Shiflett looks at a debate that's been going for a while now - addslashes() versus mysql_real_escape_string().

Last month, I discussed Google's XSS Vulnerability and provided an example that demonstrates it. I was hoping to highlight why character encoding consistency is important, but apparently the addslashes() versus mysql_real_escape_string() debate continues. Demonstrating Google's XSS vulnerability was pretty easy. Demonstrating an SQL injection attack that is immune to addslashes() is a bit more involved, but still pretty straightforward.

The reminder of the post explains the difference, how how protects you when the other doesn't (addslashes), and a simple example of how something like that could be accomplished, including code...

0 comments voice your opinion now!
php addslashes mysql_real_escape_string debate protect sql injection php addslashes mysql_real_escape_string debate protect sql injection



Similar Posts

PHPBuilder.com: Bambalam PHP EXE Compiler Now Available

Vinu Thomas' Blog: Securimage Captcha for PHP

Scott Mattocks\' Blog: PHP-GTK News #11

Chris Shiflett\'s Blog: PHP Testing Tutorial at ApacheCon

PHPBuilder.com: Using XML - A PHP Developer\'s Primer (Part 4) - XML-RPC, PHP and Javascript


Community Events









Don't see your event here?
Let us know!


conference package book release code zendframework cakephp releases zend job example PEAR PHP5 application mysql ajax developer security database framework

All content copyright, 2009 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework