Thread: Why PHP?
View Single Post
Old 2008-09-18, 03:35 AM   #2
MadCat
If something's hard to do, then it's not worth doing
 
MadCat's Avatar
 
Join Date: Sep 2008
Location: Berlin, Germany
Posts: 247
Quote:
Originally Posted by HappySpanker View Post
MySQL runs like a rock under Linux - because that's what it was written for. PHP runs well under Linux - because that it what it was written for. Perl runs rock solid under Linux - because that it what it was written for. Only ASP and .NET (cringe) were written natively for the Win platform -- everything else was "second thought" re-written or re-purposed for Windows.
Not to rain on your post but Perl runs rock solid under any sort of *nix because that's what it's written for. Perl pre-dates Linux

Quote:
PHP is selected more than any other scripting language because of its feature set compared to Perl, its cost, and its existing user base and application pool.
Perl's feature set is much bigger than PHP -- it's just that PHP has a lot lower entry level, which explains why it's common to see some seriously hideous PHP scripts out there -- Java has a slightly higher entry level but can still produce seriously fucked up code, Perl and Python require that you actually know what you're doing before you get started. Not meaning that you won't see crap code in Perl or Python... but less

Quote:
Thus concludes my overly-opinionated rant...
I share your opinion though. I used to work at a webhost as sysadmin and we had I think, a grand total of 600 servers up and running at some point. 10 of those were Windows machines, and we thankfully had a dedicated windows admin for it. He was busier with his 10 boxes than my coworker and me were with the remainder (Linux, OpenBSD, and a few "legacy" FreeBSD machines).

The main issue though for PHP v.s. Perl is that PHP tends to work out of the box. For Perl you need to often ninja the configuration if you want stuff to not run as a CGI script. Think FastCGI or mod_perl, think the Catalyst framework (which requires a silly amount of additional modules off CPAN that not every host has installed or will install).

Anyway... </end rant>
MadCat is offline   Reply With Quote