PHP/GD OHLC charting for financial time series
Documentation clean-up forthcoming. This is from 2008. By now, it's worth seriously looking into http://phpchart.org/examples/ohlc-hlc-and-candlestickstock-charts/ and http://php.net/manual/en/book.trader.php instead.