PHP only works (and badly in my opinion) within the realm of dynamic web-site programming.While I would not disagree with the sentiment, in the interests of accuracy it should be pointed out that PHP scripts can be run on the command line. You still have to wrap the stupid <?PHP ... ?> tags around the code, but aside from that it will run given #!, permissions, PATH, etc. Its a bit of a pig to do that on Windows, but even that is possible.
It is true to say that PHP is rairly used anyware except on the web. The people who use PHP rather let it down as well - poor coding practice is rife.
It might be worth pointing out that Perl on Rails being done by the Beeb
href http://www.bbc.co.uk/blogs/radiolabs/2007/11/perl_on_rails.shtml