You can do quite a bit of unorthodox stuff with PHP. If you head over to epbsoft.com, you’ll find several flash coloring sheets I made with PHP, not Flash. (Sort of anyway.) I make them by first creating specially formatted SVG (Scalable Vector Graphics) files and feeding them to a PHP script that writes ActionScript files that are then compiled by MotionTwin ActionScript compiler. As far as capabilities, it’s not all that capable. I have to jump through a couple of hoops to make an SVG that my ActionScript generator can actually parse properly, but when it works, I like the results.
svg-to-coloring.php.zip <– The source code is available if you want to take a look at how it works.