March 27, 2014
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
Category: Linux, Tricksaddress, crontab, dev, edit, email, error, mail, null, prevent, simple, stop, trick, variable
November 04, 2012
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
Category: PHP, Trickscode, contact, how, howto, mail, PHP, program, programming, secure, simple, to, tricks, very easy
January 26, 2010
Recently I had an inquiry about how I would go about creating a directory in a PHP script using a FORM with POST / GET data. Creating a Directory from a PHP script using PHP is not all that easy and should be done with caution, as you want to make sure that you validate the input and prevent un-wanted characters from being used to create a directory.Read the full blog.
January 19, 2010
Looking through many tutorials online I come across many outdated user registration and login systems that are being used by users who end up having to update their code just to get the user registration script to work and function properly. Today I decided to write my own version of a very simple User Registration and Login System using PHP and MySQL. The following script and code has been tested under PHP 5.3 and MySQL 5, but should work for any version of PHP and MySQL. Lets start up the mower and get mowing.
January 18, 2010
Creating a SQL Search in PHP can some times be confusing and often cause users to generate too much unnecessary code. Well today is the good day. The tutorial shown here will guide you through how to create a Simple and basic MySQL search on multiple fields. So roll up your sleeves and be ready to dive into creating a simple MySQL Search!Read the full blog