News & Information for Technology Purchasers
NewsFactor Network Sites:   NewsFactor.com Security CRM Business Sci-Tech Newsletters White Papers XML/RSS Feed  
   
Home Enterprise I.T. Hardware Software Network Security More Topics...
July 08, 2008
Average Rating:
Rate this article:  
Developer Developer's Dilemma: Perl or PHP?
By Joe "Zonker" Brockmeier
November 8, 2002 4:00AM

Digg It!   Bookmark to del.icio.us
PHP made headlines when Yahoo's Michael Radwin announced at PHPCon 2002 that the portal giant was embracing PHP for new development.
 
Advertisement

Speed, quality, price. Pick two. You have no doubt heard that mantra before, but PHP and Perl offer all three.

The question is, how do you choose between the two programming languages, which are both insanely popular for Web development?

Perl has been around much longer than PHP, and is by all accounts more flexible. In fact, PHP actually started out as a Perl application and was designed specifically for Web work. Perl is not specifically tailored to working with Web sites, but it has other advantages.

Perls of Wisdom

For example, Perl is undeniably ahead of PHP in terms of longevity and flexibility, and it has an arsenal of pre-developed modules that PHP cannot match. The Comprehensive Perl Archive Network (CPAN) contains 3,876 modules at present. Although PHP now has a similar project, the PHP Extension and Application Repository (PEAR), it does not come close to CPAN's massive archive of modules and documentation.

Longtime Perl hacker Randal Schwartz, who admits he is biased in favor of Perl, agrees that PHP is "an easy way for someone who wants to learn 'just a little bit of programming'" to use server-side scripting on a Web site. However, he sees Perl as the best bet for larger sites. "Once you get into the heavy lifting, Perl starts being your best friend," he told NewsFactor.

Schwartz also noted that Perl still has a significant lead on PHP. "PHP is where Perl was before Perl added all the features needed for large application development (back in the Perl4 days)," he said. "And while you can develop a large site in both PHP and Perl4, you end up requiring a huge amount of discipline to keep it bug-reduced and maintainable. Perl5 has left that mode significantly behind, with proper modules and objects and advanced programming features."

Strengths of PHP

On the other hand, Zeev Suraski, Zend Technologies co-founder and chief technology officer, told NewsFactor that PHP's simplicity gives it an advantage over Perl. "Perl starts easy but tends to get complicated very quickly... PHP starts easy and remains easy," he said. "That helped PHP grow almost exponentially and basically take over Perl's 'Web King' status from five years ago."

PHP also is perceived as a simpler language, which makes it attractive, according to Suraski. "Simplicity is not only at the language level, but also has to do with installation and perception. Most people were, and some still are, under the impression that using Perl for the Web is done through cgi-bin scripts. In the past, mod_perl had very little exposure." (continued...)

1  |  2  |  Next Page >

 

Advertisement


Advertisement


 
1.   Angry YouTube Users Pillory Viacom
2.   DreamWorks, Intel To Develop 3-D Films
3.   Pioneer Has 400GB Blu-Ray Disc
4.   Microsoft Offers ActiveX Workaround
5.   Is Overtime BlackBerry Use Billable?


advertisement
EA Hypes Spore via 'Creature Creator'EA Hypes Spore via 'Creature Creator'
Teaser released before future game.
Average Rating:
China Accused of Hacking CongressChina Accused of Hacking Congress
Rep. Wolf says dissident info copied.
Average Rating:
DreamWorks, Intel To Develop 3-D FilmsDreamWorks, Intel To Develop 3-D Films
New chips will replace AMD system.
Average Rating:
Product Information and Resources for Technology You Can Use To Boost Your Business

Network Security Spotlight
Vulnerabilities in Web Browsers Worry Researchers
A study from the Swiss Federal Institute of Technology, Google and IBM says more than 600 million Internet browsers were at risk this year. Firefox's auto-update mechanism was judged the best.
 
Online Surveys Can Expose Customers' Data
The use of online survey software to collect feedback from customers is growing as companies search for ways to take the pulse of their client base. But exposing customer data has some real risks.
 
Forty Percent of Web Browsers Open to Hackers
Researchers from Google, IBM and the Communications Systems Group in Switzerland have released a study that shows only 60 percent of Web users are surfing with patched, updated browsers.
 

Enterprise Hardware Spotlight
Laptop: The Best Bet in Today's Computer Market
Today's market offers ever-more-powerful computers at lower prices, not to mention a generation of cheap, pocket-sized gadgets. In many cases, your best computer choice is likely to be a laptop.
 
Panasonic Releases Rugged Ultra-Mobile PC
Rugged, small and ultra-mobile. That could be the description of a unit of miniature commandos, but it's actually the specs on Panasonic's new Toughbook CF-U1, the latest in its line of durable handhelds.
 
Panasonic Adds Ultra-Mobile PC to Toughbook Series
Panasonic's latest offering in its Toughbook series of rugged laptops is small enough to cradle in one hand, yet strong enough to handle the rough and tumble of extreme environments.
 

Navigation
NewsFactor Network
Home/Top News | Enterprise I.T. | Hardware | Software | Network Security | Wireless Tech | Linux/Open Source | Apple/Macintosh
Microsoft/Windows | World Wide Web | Data Storage | E-Commerce | Personal Tech | Tech Trends | Business Briefing
NewsFactor Network Enterprise I.T. Sites
NewsFactor Technology News | Enterprise Security Today | CRM Daily

NewsFactor Business and Innovation Sites
Sci-Tech Today | NewsFactor Business Report

NewsFactor Services
FreeNewsFeed | Free Newsletters | Free Whitepapers | XML/RSS Feed

About NewsFactor Network | How To Contact Us | Article Reprints | Careers @ NewsFactor | How To Advertise

Privacy Policy | Terms of Service
© Copyright 2000-2008 NewsFactor Network. All rights reserved. Article rating technology by Blogowogo.