News Feed
Sections
News Archive


Community Events






feed this:

Mark Kimsal's Blog:
Addslashes() don't call it a comeback
0 comments :: posted Thursday June 12, 2008 @ 13:36:20
voice your opinion now!

As Michael Kimsal points out, there's a new posting on his brother Mark's blog talking about alternatives to addslashes() in your applications.

I've seen a lot of people talking about mysql_real_escape_string() vs addslashes() vs addcslashes(). There seems to be a lot of real confusion about what these functions do (even with the php.net manual around), especially when it comes to character sets. [...] So, I've decided to lay it all out in a few charts so there is no confusion about what each function does and how each can help protect against SQL injection attacks.

He ran some tests based on what the function does to see if it helps with certain things like "escapes with single quotes instead of backslash" and "prevents multi-byte attacks". He compares the speed and testability of the functions as well as provides a multi-byte breakdown oh how the mysql_real_escape_string function works with different character sets.

tagged with: addslashes compare escape string mysql addcslashes multibyte


Dokeos Blog:
mbstring vs iconv
0 comments :: posted Thursday April 24, 2008 @ 11:18:08
voice your opinion now!

In this post on the Dokeos blog, there's a comparison of the mbstring function and the iconv library as it pertains to their use on multi-byte strings.

I was wondering today why use mbstring rather than iconv in Dokeos, and honestly I didn't remember exactly why I had chosen mbstring in the past, but finding information about the *differences* between the two. [...] Searching a bit more, I found a PPT presentation from Carlos Hoyos on Google.

Essentially, it boils down to how the library is integrated - mbstring is bundled and iconv is pulled from an external source. So, if you're looking for maximum portability, he recommends mbstring.

tagged with: mbstring iconv multibyte character string compare internal external


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

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