Thread: PHP or PERL

  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Rep Power
    im a newbie and im trying to decide whether to use PHP or PERL to access mysql. i have worked with perl to write some simple cgi scripts and i have seen some PHP code so i know a little bit about both languges.
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Niagara Falls (On the wrong side of the gorge)
    Rep Power
    If you have PHP available to you, by all means use it. There are a few applications where Perl might be a better choice and you can always use Perl in those situations. Most applications can be scripted much more quickly and easily with PHP.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Englewood, CO
    Rep Power
    I agree. PHP offers the advantage of being able to be embedded in plain HTML. If you rely on Perl, you'll have to either embed an execute call to a Perl script in your HTML or have Perl print out the entire page with function calls.

    With PHP, you just put the code right into plain HTML, enclosing the code with <? ?> to make it run.


  6. #4
  7. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Perth West Australia
    Rep Power
    Or look at it this way ....

    My first succsesful PERL script (even one I had cut and pasted!) - several hours to get working & still do not fully understand!

    My first dynamic page generator using MySQL & PHP for the first time - less than 2 hours from the first look at the manual.

    & have not yet found anything that I want to do that PHP (with a little bit of javascript)
    can not do.


    Simon Wheeler
    FirePages -DHTML/PHP/MySQL

Similar Threads

  1. Perl vs PHP, I need your opinion!
    By suzanasjoqvist in forum PHP Development
    Replies: 2
    Last Post: April 1st, 2003, 11:54 AM
  2. perl includes in a php page
    By dave_mwi in forum PHP Development
    Replies: 1
    Last Post: June 17th, 2002, 03:06 PM
  3. PHP on Apache
    By YtsE in forum PHP Development
    Replies: 12
    Last Post: March 25th, 2002, 10:12 PM
  4. Hello Perl Land
    By if(Kevin) in forum Perl Programming
    Replies: 4
    Last Post: July 26th, 2001, 12:28 PM
  5. Calling Perl script from PHP
    By dsang in forum PHP Development
    Replies: 0
    Last Post: January 17th, 2000, 12:29 PM

IMN logo majestic logo threadwatch logo seochat tools logo