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
spam
launch
release
debuggeddesigns
encryption
rot13
charlie
ableton
quicksilver
snowboard
php
open source
as
boston
magazine
email
flash
brain
code
cakephp
php5tube
science
privacy
captcha
drum machines
skateboard
1984
security
general
bakery
mbta
gmail
mailto
trice
usort
sports
mit
routes
whoami
google
hobnox
geek
youtube
color
germans
regular expressions
class
defcon
orwell
published
|