Category Archives: PHP

PHP Development – advice, snippets, tutorials and words of wisdom!

Session Handling in PHP

Traditionally HTTP is a stateless protocol. That is it is made up of requests and responses and there is no notion of a ‘persistent connection’. This means that there is no way to have consistency or personalisation on the web … Continue reading

Posted in PHP | Tagged , , | Leave a comment

Need to make PHP ‘stop’… PHP wait timer

AJAX is great… but sometimes it’s too quick if you’re updating… So… How can I make the page wait for a few seconds, then proceed? Well there are 2 functions PHP has to pause execution. They are: sleep(NUMBER_OF_SECONDS); and: usleep(NUMBER_OF_MS); … Continue reading

Posted in PHP | Tagged , , , | Leave a comment

PHP – Generate/Create strong passwords, uuid, random string

Very often the need to create passwords or some other ‘unique’ string be it a captcha or for use as unique identifier (UUID). Here are a few functions I’ve used and refined over the years, 2 types, for password/random string … Continue reading

Posted in PHP | Leave a comment

Signs of poor PHP ‘products’

If you are a professional developer (or aspiring) you will inevitably get asked to customise or even better “extend” existing wares. If it’s a product you are familiar with great! If not I heartilly reccomend spending a little time investigating … Continue reading

Posted in PHP | Tagged , | Leave a comment

PHP Form Action Self submit

A question I am always asked is about ‘self-submitting’ forms.

Posted in PHP, Programming | Tagged , , , | Leave a comment