Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Perl/CGI Vs PHP Vs ASP

by johnnywang (Priest)
on May 21, 2005 at 08:23 UTC ( [id://459214]=note: print w/replies, xml ) Need Help??


in reply to Perl/CGI Vs PHP Vs ASP

First of all, it's pretty difficult to get an un-biased answer on this type of question.

I'd think the ASP route is more or less out: it's a pure Windows solution (from your post, it seems you want to run linux.) That being said, I'd say if you are a Windows person, and want to take what comes with it, ASP may be a good choice for the web part, you may need other Windows technology to do the index/searching part.

Speed/scalability should NOT be your concern for making this decision, period. It's pretty difficult to find sites for which perl, php or asp is not fast enough (maybe google, yahoo, ebay, amazon?). When speed/scalability does become a problem, it's inevitably the programming/programmer, not the programming language. That being said, if you choose perl, do try to use mod_perl, it's magnitude faster than perl/cgi.

Now PHP vs. perl. Since you're here, you must know all the good things about perl. PHP is a web centric language, it was especially invented for web programming, so it does make many web things easier, esepecially for beginners. After 5 versions, PHP5 is looking like a decent language, and I'm sure it will get better and better because of its large following. Therefore I don't think you should have much concern if you decide to use PHP for the web part.

However, there are very few decent sites where you don't need other backend processing, this is where PHP is not good: it's not designed for, few people are using it for that, which probably means it won't get better in that aspect (ASP has the same problem). If you want a language that can both do your web stuff and whatever else, then perl is a better choice.

Replies are listed 'Best First'.
Re^2: Perl/CGI Vs PHP Vs ASP
by Cap'n Steve (Friar) on May 22, 2005 at 05:15 UTC
    Slightly off topic, but I believe amazon.com does use Perl. I know imdb.com and slashdot.org, two extremely busy sites, do. It just goes to show that your setup is more important than the technology you use.

    Back to the question: Since you already know Perl, you'll probably be able to dive into PHP with no problems. However, if you're familiar with Perl there are a few things in PHP that might trip you up, like their "Perl compatible" regular expressions, which take a bit of getting used to.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://459214]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-20 04:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found