Archive for April, 2006

PHP basics: sorting a multi-column array

Saturday, April 15th, 2006

PHP support for arrays is fantastic, particularly for those of us with a history using ASP. One of the key advantages of arrays is the ability to compile our information, sort it as we want, and then display it. Sorting a single-column array is straightforward (there is a sort() function). But what about […]

PHP basics: generating a random password

Monday, April 10th, 2006

One of the simplest techniques for ensuring the quality of registrations to a website is to require confirmation via an e-mail address before providing access. Quickest way to do this is to not ask for a password but instead mail a random generated password to the provided address. If they then log in […]