I'm not trying to start a religious war here, and I do love Perl, but I just can't squander this opportunity to debate with one of the most holy monks, Randal Schwartz :-)

One disclaimer before I start - I haven't used PHP in over a year, so things may have changed in the PHP world, for better or worse.

My experience with PHP was mostly a positive one - I found PHP to
* be very fast, as we had compiled PHP into Apache. * be nice to program web applications with - right out of the box(with no additional modules or packages), you get the ability to mix PHP programming code in with html. This was new for me, but I quickly grew to like it - A LOT! * come stock with a lot of great web stuff, including a session management framework that allows you to setup session management in flat files or in the database of your choice, relatively easily. The "cons" I found, in comparison to Perl, were * Perl has(had?) better documentation * Perl has a better code repository * Perl has DBI which is the *excellent* Perl "standard" for interfacing to a database using a database "independent" interface. This allows you to write code that is NOT dependent on any one specific database - therefore, the code allows you to port to a new database with a minimum of effort. Perl DBI also has an excellent mailing list, with LOTS of very experienced people waiting to answer questions. At the time(still?), PHP had no equivalent agreed upon "standard" database independent api. I ended up writing my own database independent layer in PHP.
So, I wouldn't hesitate to recommend PHP to anyone doing web development. But before jumping to PHP, especially if you're using it to interact with a database, check to see if PHP now supports a "standard" database independent interface. That said, I still love Perl, and also would recommend Perl for *any* programming task.

In reply to Re: •Re: Perl or php for database edits? by hmerrill
in thread Perl or php for database edits? by KPeter0314

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.