PHP Classes

Great Tips

Recommend this page to a friend!

      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:
us.php.net/manual/en/function.mysql ...

Or you can use ADOdb's Quote Function:
phplens.com/lens/adodb/docs-adodb.h ...

Or one of the classes on this site:
google.com/custom?domains=www.phpcl ...

For extra safety on user data in a session encrypt and Decrypt it:
google.com/custom?domains=www.phpcl ...

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

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