Archive for the PHP category:

PHP has taken the web world by storm - here I discuss my tips and experiences with it, as well as the PHP Extension Library, PEAR.

Combo Pack: CakePHP and Leopard Virtual Hosts

Posted April 4th @ 3:52 pm  |  Filed in: Apache, OS X, PHP

A bit about CakePHP, but more about getting several virtual hosts/domains up and running on Leopard. For example, you can setup www.testsite1.dev and www.testsite2.dev with full PHP/MySQL database-driven goodness.

Using PEAR Pager and HTML_Ajax to Build a PDF Catalog

Posted February 11th @ 4:59 pm  |  Filed in: PHP

I have a client with a large product catalog in PDF format, which is close to 20MB to download. While this is fine for some of their customers, they wanted to give people the ability to only download what they needed, as well as the ability to sort of “flip” through it without having to […]

Basic File Parsing with PHP and Python

Posted January 30th @ 4:38 pm  |  Filed in: PHP, Python

I’m currently taking a masters class on dynamic languages with DaBeaz, and our first assignment was to parse a basic text file containing a stock portfolio, like so (here’s a simple text file w/ all of them):
YHOO 50 19.25
AAPL 100 143.41
SCOX 500 4.21…
The values are symbol, shares, and price. We had to produce a nicely […]

Options:

Size

Colors