SitePoint Sponsor

User Tag List

View Poll Results: PHP or Perl?

Voters
4. You may not vote on this poll
  • PHP

    2 50.00%
  • Perl

    2 50.00%
Results 1 to 7 of 7
  1. #1
    SitePoint Wizard Defender1's Avatar
    Join Date
    Apr 2001
    Location
    My Computer
    Posts
    2,808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP vs. Perl/CGI

    Can you guys post the pros/cons of each here for me?
    A friend and I are arguing which is better.
    Personally, i like PHP 100x more than perl.
    I tried to learn perl, and just couldn't.
    I've picked up php amazingly easily and quickly.
    It's a lot easier to use, and i think it's faster than perl.

    What do the rest of you think?
    Last edited by Defender1; Sep 7, 2001 at 01:00.
    Defender's Designs
    I'm Getting Married!

    Not-so-patiently awaiting Harry Potter Book 7 *sigh*

  2. #2
    code addict Abstraction's Avatar
    Join Date
    Apr 2001
    Location
    Des Moines, IA
    Posts
    346
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: PHP vs. Perl/CGI

    Originally posted by Defender1
    Personally, i like PHP 100x more than perl.
    I tried to learn perl, and just couldn't.
    If you don't know Perl you can't compare the two.

  3. #3
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This subject has been beat into the ground already many times.

    What it boils down to, is PHP is easier to learn and less strict, thats why you picked up on it so fast. Whether this is a good thing or not remains to be seen. Perl is very very powerful and I use for a lot of things including, server admin and web apps. I do personally find PHP more fun, but that is a personal preference. One is not better than the other, they are different. Use the tool that best fits the job.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  4. #4
    SitePoint Addict
    Join Date
    Sep 2001
    Location
    St. Louis, MO
    Posts
    212
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When using CGIs, every exchange of information (between the browser and server) causes the web server to execute a unique instance of the CGI script. If you have a high volume site that is running 100+ instances of that script at any given time, it can get quite expensive.

    Every one of those CGI scripts takes a little bit of umph out of the server engine.

    If you are just starting out, I would go with ASP or PHP. Once you get comfortable with them and get some solid development experience under your belt, jump to Java!

    My 2 cents,
    Rob

  5. #5
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't confuse CGI with PERL. Perl can be run as a cgi script but there other alternatives to CGI even with Perl. Mod_Perl for one.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  6. #6
    SitePoint Addict
    Join Date
    Sep 2001
    Location
    St. Louis, MO
    Posts
    212
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I phrased it that way because his question was PHP vs. Perl/CGI. I assumed he was going to write his CGIs with Perl, but I do think a lot of people do confuse the two.

    Just in case anyone reading this don't know the difference, I'll briefly explain...

    CGI is not a language nor a program. It is a standard of communication that translates between the language the client speaks (HTMLized English) and the many different languages spoken by the resources the client wants to utilize (such as SQL). The functions that the actual CGI does can be written in many different languages..Perl, C, Visual Basic, etc. Perl just happens to be (in my experience) the most common by far.

    Anyway, I agree with freddy that one isn't better than the other per se, but you wrote that you picked up PHP quickly and enjoy it, so I'd run with that for now.

  7. #7
    Sports Publisher mjames's Avatar
    Join Date
    Jan 2000
    Location
    Charlotte, NC
    Posts
    5,891
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There was a recent thread covering the exact same topic: http://www.sitepointforums.com/showt...threadid=31766


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •