I base some work on PHP because it is designed to do just for web thingys... But as soon I see that the rows of programming code exceeds the HTML rows. I switch to Perl it is just more suited to handle that kind of generation.
On the other hand everything is Integrated in PHP. Simple mailforms and easier databasehandling is gold with PHP.