I'm stuck with PHP for most stuff in my current job. It sucks. I hate it. Sure its easy to learn if you enjoy looking up function names on PHP.net all the time. Function name for everything is a bad language design.

Contrast to Perl which gives you a set of tools such as embedded regexes which automatically make a plethora of PHP text processing functions obsolete (Yes you can use Perl Regexes in PHP, it however is a pain, they aren't embedded and its not quite the same)

CGI is fine for small sites without a lot of traffic. Yes PHP is faster than CGI, but if you need speed mod_perl is better anyway. Also a previous poster mentioned that mod_perl gives you access to the Apache::API. PHP does not do this, in fact doing anything with Apache using PHP is a real pain because it is intentionally separated for 'security' concerns

Which brings me to another thing. You may hear PHP developers talk all the time about how PHP is so much more secure than Perl. Simply not true. You can write insecure programs in PHP just as easily as Perl. In fact PHP I think lures newcomers into a false sense of security because of all the "security" inherent in the system, when in reality there is nothing inherently secure in PHP.

Yes I'm bitter about using PHP at work, I apologize :)

Lobster Aliens Are attacking the world!

In reply to Re: CGI/Perl vs PHP by cfreak
in thread CGI/Perl vs PHP by gilbert0

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.