Stop Crontab from Sending Emails

This week I was starting to get fed up with Crontab and it always sending me emails regarding jobs. I have log files setup and prefer to look at my logs for errors vs crontab flooding my inbox. I never can seem to remember the 2>&1 trick, as I do not constantly use crontab. So I went exploring in the manual and found a nice little track to stop crontab from flooding your sever mail file with mail. Simply put MAILTO='' at the top of your crontab and you are set. No more trying to remember the tricky 2>&1 or any other weird hacks.… Read More

Tricks to a Simple and Secure Contact Form using PHP

A day does not go by it seems that someone is asking how to create a simple contact form in PHP. The problem I tend to find is that most of the tutorials online show bad programming practice, such as using the @ error suppressor or not validating / checking the data passed into the form. I decided to write up a few of my tricks on how to do a proper PHP Secure Contact form and attempt to explain why. As always, I welcome comments / suggestions in the remarks. I have decided to omit the Captcha, as I feel Captcha is just broken, so if you want to prevent spam, you will need to research other methods, like Honey Pots.… Read More

↑ BACK TO THE TOP ↑