Well, in dealing with PHP versus Perl for CGI, there is always that one BIG issue called security. Generally, the way the latest builds of PHP have gone, you have less control over security dealing with PHP than you do with Perl on systems where you don't have access to configure the php module/executable. If you did have such accesses, then you wouldn't normally have much of a problem getting the Perl modules in that you need. PHP is quick, and is coming along fine in a timeline relational way. Perl is much more mature than PHP.. But PHP is almost purely web based, and there are much more reasons to use Perl than for the web. If you can get a host that deals well with securing PHP, then I'd say that, if you're comfortable with the language (many ppl like it cause it's more strict than Perl's freeform on a syntax level, which can lead to overload when there's several thousand ways to do something in Perl) then PHP can be a better choice. I have started playing with PHP and it does tend to be easier to develop the front end, but right now there are several security issues with the default config of PHP that many hosts tend to use. Aside from the security tho, PHP is nice on a front end level, using Perl for several backend tasks. The two languages can live in harmony and can compliment each other well... But I still tend to lean towards Perl for more hardcore tasks. No, I'm not a professional developer, but that's my tendency so far, and I don't see it changing unless I'm paid to work with PHP..
anyway.. my 2 pence..
-Syn0

Update: Oh, damn... I forgot the most important reason why Perl kicks ass all over PHP.. thanks to John's post, I remebered.. there is no PHP community in comparison to Perl.. the Perl community is one of the most sharing, strong prescences I've ever seen. It continues to inspire my fierce loyalty and I just had to mention that as well.. PHP has a ways to go for this kind of thing.

In reply to Re: PHP vs. Perl for the 10,000th time by synapse0
in thread PHP vs. Perl for the 10,000th time by kha0z

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.