Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 8th, 2006, 10:00 AM   #1
Indigno
Professional Programmer
 
Indigno's Avatar
 
Join Date: Dec 2005
Location: Anywhere non-productive
Posts: 267
Rep Power: 0 Indigno is an unknown quantity at this point
Send a message via AIM to Indigno Send a message via MSN to Indigno Send a message via Yahoo to Indigno
Perl compared to PHP

I've picked up books on both of these, but in the introductions all it really says is that they are good server side scripting tools. They don't really list their functions and limits. What I'm asking, is what are they built for? How do they compare? And what are their limits?
Indigno is offline   Reply With Quote
Old Feb 8th, 2006, 10:18 AM   #2
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,453
Rep Power: 7 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
I'll leave the details for someone else to explain... but in my experience... Perl is good for system related scripts while PHP is more suited for web based scripts. (I realize Perl has the ability to utilize CGI, etc).
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Feb 8th, 2006, 10:25 AM   #3
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
Php for web, perl for system scripts IMHO, just like IR.

However you can use php for system scripts as well, but i have never used it for that purpose.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Jul 12th, 2006, 3:57 PM   #4
mackenga
Professional Programmer
 
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 314
Rep Power: 4 mackenga is on a distinguished road
I prefer Perl CGIs to PHP, but I think that's just because I met Perl first. PHP is definitely nice.

In my opinion PHP has a cleaner, simpler syntax and is more approachable; C experience takes you further with PHP than it does with Perl. The way you use PHP is also more familiar to people with ASP experience, and access to commonly used stuff like databases seems so clean and neat on PHP as to be trivial, whereas with Perl it takes a little more work.

Hackerish types tend to prefer Perl in my experience; PHP is more popular with people who want to throw down some code quickly and get the job done. To be honest, I don't there's all that much to choose between them if you haven't learned either yet; if you think you'll want to write code that isn't intended to run as a server-side script driving a website then maybe you'd thank yourself later for choosing Perl, but I think you've got a win/win situation with this particular decision anyway.
__________________
"I'm not a genius. Why do I have to suffer?"
mackenga is offline   Reply With Quote
Old Jul 12th, 2006, 4:38 PM   #5
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
PHP is a templated based language. PHP code is embedded into the template (which is usually in HTML), and the server PHP module converts the code into text output.

Perl is a more general use language, and showing its age somewhat. However, it's arguably more flexible than PHP, and you can achieve some interesting programming techniques in it.
Arevos is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:32 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC