Code & the internet

Posts Tagged ‘files’

scandir – PHP Function

I discovered a new function in PHP this week – “scandir”.  It is going to save a load of time dealing with filing systems – it’s the difference between fopen/fread/fclose and file_get_contents but for directories. The function is pretty simple really – it takes a single parameter, the name of a directory and returns all [...]


Previously

Building a PHPDoc parser in PHP

This is the second in a series of posts about how I built Doqumentor – The Runtime PHP Documen


Using the PHP Reflection API to document your code

I have recently spent a bit of time writing a new PHP development tool for documenting code at runti


Exploring the iPhone’s accelerometer through Javascript

The iPhone has had an accelerometer in it since the start, allowing users to tilt the device and it