- Details
Surprisingly, today's accepted algorithm for shuffling a list was arrived at by Ronald Fraser and Frank Yates in 1938. Their version used paper and pencil, but it has since been updated for computers and popularised by Donald Knuth. Here's how to shuffle things properly.
- Details
- Details
<input>
tag with type="file"
. A friendlier method is to allow the user to drag files onto the page from their desktop. Here's how.
- Details
This week I finally lost patience with the mental gymnastics required to unpack the $_FILES array that PHP provides when uploading files with POST. I knocked up this quick function to reorganise the data into something I could work with.
- Details
Read more: Prepared Statements: binding an array of parameters to an 'IN' clause