Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Perl or PHP?

  1. #1
    Join Date
    Feb 2005
    Location
    Sydney, Australia
    Beans
    375
    Distro
    Ubuntu 7.04 Feisty Fawn

    Question Perl or PHP?

    Hi, I am currently starting my software design major work for school and want to create a blog tool.

    It'll have text entry, possibly with WYSIWYG formatting (a bit like the editor i'm writing in now; but with the formatting viewable in the text, not just the tags), an image gallery, an archive section and a profile page with various other information. Information will be stored in a database (MySQL?) and the whole thing will be web based web-based with editing done with the use of forms.

    Would it be better to use PHP or Perl for this project? I originally looked at Perl as i was thinking of going a GUI as well, but the GUI idea is no longer and now PHP looks good as well. I've played a bit with PHP before but not really with database interaction and don't know which to choose.

    Thanks for your help,
    Owen
    www.bsodcomic.com
    "Because life looks better in .jpg"

  2. #2
    Join Date
    Feb 2005
    Location
    Maine, USA
    Beans
    286

    Re: Perl or PHP?

    Basically the question is--which language are you more comfortable in?
    I've used both types of blog, and there's not much difference from the user end, really.
    I like PHP better because I'm more comfortable with it, and think that the code looks cleaner, and PHP works very well with databases (better than Perl, as far as I'm concerned).
    My 2 cents (which ain't worth much now-a-days).

  3. #3
    Join Date
    Feb 2005
    Beans
    160

    Re: Perl or PHP?

    I'd use php

  4. #4
    Join Date
    Feb 2005
    Location
    Sydney, Australia
    Beans
    375
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Perl or PHP?

    thanks for the speedy replies.. php does look like the better choice, but any ideas of how to do the WYSIWYG thing, with the text formatting displayed updated in realtime as it is changed/applied? or if it is actually possible to do in php?

    This type of WYSIWYG is used in the hotmail and gmail email composing things if you don't know what i'm talking about...
    www.bsodcomic.com
    "Because life looks better in .jpg"

  5. #5
    Join Date
    Feb 2005
    Location
    Maine, USA
    Beans
    286

    Re: Perl or PHP?

    The WYSIWYG editor that you're talking about is, obviously, possible in PHP, since this forum is written in PHP (as are most forums). I know of a couple of blogs that are written with WYSIWYG editors for posting (it's not really WYSIWYG per se, but I do know what you're talking about)--WordPress is a good example of that.

  6. #6
    Join Date
    Feb 2005
    Beans
    15

    Re: Perl or PHP?

    From my experience, PHP offers much more capability in and of itsself. With Perl, you either end up writing all of the scripts entirely by yourself, or searching for an already mand Perl Module to suit your needs. In my opinion, PHP is much nicer and put together. The only times I have had to revert to using Perl is when I was working on a webserver that didnt support PHP... so for me PHP is the only way to fly.

    My vote: PHP


  7. #7
    Join Date
    Nov 2004
    Location
    Reno
    Beans
    363
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Perl or PHP?

    I used to be a Perl advocate... then I met my trusty friends PHP and Python. They completely replace any use I might've had for Perl, whatsoever. Honestly, I don't see any reason for anyone, in any situation, to use Perl anymore .
    -
    About Me
    Joshua "stderr / dataw0lf" Simpson, CCIE R&S and Security, RHCE

  8. #8
    Join Date
    Jan 2005
    Location
    Chesterfield UK
    Beans
    139

    Re: Perl or PHP?

    I'd use ASP.net and mono if there was the choice....

    I'd go with php though...the db stuff isn't that hard to do iirc...

  9. #9
    Join Date
    Feb 2005
    Beans
    160

    Re: Perl or PHP?

    Quote Originally Posted by sas
    I'd use ASP.net and mono if there was the choice....
    With vbscript or c#?

    Man, I do php, python, and .net at work. I'd never choose .net over php or python. What is it you like about .net?

  10. #10
    Join Date
    Jan 2005
    Location
    Chesterfield UK
    Beans
    139

    Re: Perl or PHP?

    vb.net is all I know at the minute...I intent to start playing with C# sometime this week though...

    The nice thing about asp.net /asp.mono (?) is the way it forces seperation of design and code, it's similarity to mono/.net desktop programming, object orientation, useful (though buggy) IDE - webmatrix, free forms validation..

    It just seemed to work rather nicely, when I tried PHP a couple of years ago it just seemed kind of kludgy - though I've done a lot more programming since so maybe that'll help and I've never really used python aside from a couple of tutorials

Page 1 of 2 12 LastLast

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
  •