This piece of code demostrates the use of phplot (see Code Gallery entry) to create inline superimposed graphs from large arrays of data. To facilitate this, random image files
are generated in a temporary directory on the server, which are then displayed inline. When the temporary dir becomes too large, its contents are purged recursively.