Wednesday, October 5th, 2016

Random Ad Display

The PHP required to select multiple ads to display on the same web page without displaying any one ad more than once is really simple when you know how. This page shows you just how simple it is to set up a Random Ad Display.

Tuesday, September 27th, 2016

Login with FaceBook/Twitter/Google+ etc

Instead of or in addition to creating your own login system, you can also set up to use API provided by social media sites to allow people to use those logins to login to your site. Login with FaceBook/Twitter/Google+ etc

Monday, September 26th, 2016

Components of a Login System

When many people think of being able to log int to a site they think of the login form. Here we look at several of the other components that any login system will need to be able to function. Components of a Login System

Wednesday, August 10th, 2016

The ImportanceofValidation

Leaving out the validation makes it easier to demonstrate the part of the code that is being taught without it adversely affecting the way the code works provided that only valid values are input. Since the person learning to code can be relied on to enter valid values this makes teaching the code constructs easier […]

Thursday, July 28th, 2016

Proper ProcessingofVariables in PHP

Just about all of the forum questions asked by PHP beginners have no input processing in their script whatsoever. With over half the code that they should have in the script missing, that the part they do have doesn’t quite work properly is the least of their problems. One way of making sure all of […]

Sunday, July 10th, 2016

Security and PasswordResets

With passwords hashed for security, how do you handle forgotten passwords? Here we look at various things you can do to make the process of giving someone a new password more secure. Security and Password Resets

Saturday, July 9th, 2016

Password Hashes

PHP 5.5 introduced a new way of handling password hashes that allows them to be automatically updated if security becomes an issue. Password Hashes

Thursday, June 16th, 2016

Writing Code

It recently occurred to me that I am wasting a lot of time when adding code samples into web pages through having to convert a number of the characters in the content into equivalent entity codes and then adding line breaks between the lines. Since these pages are now all PHP, why not let PHP […]

Saturday, May 7th, 2016


Often what you place inside a PHP include file is intended to be a part of the content to display in a web page and you do not want people running the file separately in order to view that page fragment by itself. Admittedly it can be unlikely for people to guess where the include […]

Sunday, May 1st, 2016


About the only effective way of protecting your images on the web is to watermark the images themselves. Any other form of “protection” is useless because the images are downloaded to your visitors’ computers in order for their browser to be able to display the web page and that image file can therefore be easily […]

Sunday, April 24th, 2016

Dates and Databases

Just to get away from JavaScript briefly I wrote this article about how easy it is to convert dates between the internal formats used by PHP and SQL. Two simple PHP commands is all you need. Dates and Databases

Monday, April 11th, 2016

Tainted Data and Validating/Sanitising

These are really fundamental aspects of making your PHP script secure and yet so many beginners do the complete opposite and lessen the security of their script right from the start and then wonder how to patch a couple of the millions of security holes that they introduced. Far easier to not create all those […]