Login   Register  
PHP Classes
elePHPant
Icontem

Great Tips

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP Classes blog  >  8 defensive programmi...  >  All threads  >  Great Tips  >  (Un) Subscribe thread alerts  
Subject:Great Tips
Summary:Here are a few more links I found helpful
Messages:1
Author:m2guru
Date:2007-04-25 13:57:57
Update:2007-04-25 16:54:17
 

  1. Great Tips   Reply   Report abuse  
Picture of m2guru
m2guru
2007-04-25 16:54:17
I am fortunate to be working with a team full of
really talented PHP Coders on a fairly large project
and they have passed on a lot of new information and
shared some great tricks with me.

Use mysql_real_escape_string to escape 'evil characters' and prevent SQL Injection Attacks:
http://us.php.net/manual/en/function.mysql-real-escape-strin ...

Or you can use ADOdb's Quote Function:
http://phplens.com/lens/adodb/docs-adodb.htm#quote

Or one of the classes on this site:
http://www.google.com/custom?domains=www.phpclasses.org&q=es ...

For extra safety on user data in a session encrypt and Decrypt it:
http://www.google.com/custom?domains=www.phpclasses.org&q=en ...

We have had good luck with the PHPFreaksCrypto.class
http://www.phpfreaks.com/tutorials/128/1.php

ML et al, PHPClasses.org continues to be a valuable resource! Keep up the great work.