Mailto is a class written by Debugged Interactive Designs in PHP4 to obfuscate e-mail addresses from spam harvesters. The class lets you easily encode an entire anchor tag using ROT13 Encryption. At run-time, javascript is used to decode the ROT13 encryption. If javascript is disabled, then the e-mail address is safely shown by reversing the e-mail address using PHP and re-reversing (versing?) it at run-time using CSS.
Php5tube is a free, open source class written by Debugged Interactive Designs in PHP5 to act as a wrapper for Youtube's API. Methods process the response XML and return a friendly array of data to make development simple and intuitive...
Regular expressions can also help clean up input text for more aesthetic purposes. Let's assume we want to convert a blog title into URL-friendly characters...
Encrypting a password using the md5 algorithm is so easy that you really have no excuse not to use it for saving passwords into your database...
While regular expressions are often used for input validation, I also find them very useful for cleaning malicious code in user input. For this I used the function preg_replace. The idea is that I only allow certain characters through...
Any input that you get from a user should be cleaned for malicious code. Here are some simple functions that will help... |
POPULAR BLOG TAGS
flash
orwell
google
1984
debuggeddesigns
code
drum machines
whoami
captcha
class
gmail
mit
snowboard
charlie
magazine
science
brain
germans
as
color
quicksilver
geek
bakery
rot13
release
mailto
php
mbta
email
security
skateboard
general
open source
routes
spam
php5tube
published
boston
trice
ableton
hobnox
usort
sports
defcon
youtube
encryption
cakephp
launch
privacy
regular expressions
|