Security
Books

Pro PHP Security – Review

PHP being such a popular and versatile scripting language it’s natural that security is not to be taken lightly. There are thousands of web sites in the internet dedicated to this subject as well as dozens of books. Finding the right one… now that’s a challenge! “Pro PHP Security” is […]

code
PHP

How to validate an email address format

There are several ways of validating an email address format. Normally, I do it the following way: 1. I first define the regular expression for the email format: define (“FORMAT”,”^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$”); 2. To validate the email address provided is correct: if ( !eregi (FORMAT, $email)) echo “The email provided has an […]

Security
PHP

PHP security considerations

When developing a script wether if it’s in PHP or any other language you should always consider the security aspect. I’m sure the last thing you want is to get your script (and ultimately your data) hacked. To make sure this does not happen there are a few steps you […]