So I'm wondering, and I'll ask you, the Perl community: why does everyone seem to prefer PHP nowadays? Is it because the creator of PHP's first name isn't Larry? Is it because the word 'PHP' is shorter than the word 'Perl'?

Because almost every web host on the planet has mod_php installed. Which means that people who want to mess around with interactive web applications have a very low barrier to entry with PHP. Upload the files to the web server. Done.

Compared to separate-process-CGI-scripts mod_php is a lot faster/simpler. Compared to mod_perl + templating library of your choice it's a lot more common.

And also, since PHP 5 (with 6 around the corner) it's a considerably less hateful language from a purely technical perspective.

(update: less hateful than previous PHP versions anyway)


In reply to Re: The REAL reason for why they choose PHP over Perl. by adrianh
in thread The REAL reason for why they choose PHP over Perl. by Spidy

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.