Archive for the 'PHP' Category

The Mona Lisa in PHP

Recently on Hacker News it has become common place to bash PHP. There was an article posted to the site with a title of “At 14, is PHP Finally Growing Up?” which started a slew of flame bait. I took it upon myself to post this morsel of a comment:

I would like to argue the C language argument here. If I want to shoot myself in the foot, the language should let me. If I want to paint the Mona Lisa, the language should let me. PHP does that.

That prompted a few snarky remarks about which resolutions and to what extent PHP could paint the Mona Lisa.

So I did it.

Full size: http://williamriggins.com/mona.php?x=400&y=571

Favicon Size: http://williamriggins.com/mona.php?x=10&y=10

Code (minus base64′d image constant): http://pastie.org/506643