I find Perl better for processing text, and for writing quick and dirty scripts. It has a lot of modules built, distributed by CPAN, which are generally quite powerful.
I find PHP better small-to-medium-sized Web sites. It tends to be cleaner, but could also take awhile to write. It also has modules, via PEAR, but I've never used those.