Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Support > php issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-23-2006, 10:39 AM
Jan's Avatar
Jan Jan is offline
Senior Member
 
Join Date: Jul 2006
Posts: 186
Default Perl vs PHP

Perl or PHP: Which is better and easy to learn?
Reply With Quote
  #2 (permalink)  
Old 09-23-2006, 11:14 AM
Senior Member
 
Join Date: Apr 2006
Posts: 295
Default

Off the two I think PHP is slightly easier to learn from a web design point of view. PHP pages are constructed like HTML pages, with standard HTML markup. You can find the detailed info here <b>mediacollege.com/internet/perl/perl-vs-php.html</b>
Reply With Quote
  #3 (permalink)  
Old 09-24-2006, 11:06 AM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default

I'd agree and say PHP. Performance for PHP is good, there are loads of resources available, it's easy to learn and if you use PHP 5 it is fully object-oriented.
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
Reply With Quote
  #4 (permalink)  
Old 10-23-2006, 10:40 AM
Senior Member
 
Join Date: Apr 2006
Location: Norway
Posts: 1,643
Default

For the newbie those having knowledge of HTML, it is easier to learn PHP as it is closer that they already know.
__________________

Reply With Quote
  #5 (permalink)  
Old 10-23-2006, 11:12 AM
sanderson's Avatar
Moderator
 
Join Date: Oct 2006
Location: Durham
Posts: 261
Default

The major plus point of php over perl is that php is designed for scripting the web and perl is designed to do many things including web and might because of this got complicated. You can say it is perl’s flexibility or complexity, which makes it easier to write code. That same makes it harder to read for another author or coder, where php has a defined format which allows flexibility. Php is easier to integrate into current html. And it has almost all ‘good’ functionality of perl: constructs, syntax and so on, which are simpler than perl. As perl is a very tried and true language, it's presence in the industry is much older than php, but you can see php is growing very fast. Php is the choicest one for web for it's simplicity.
Reply With Quote
  #6 (permalink)  
Old 10-23-2006, 11:50 AM
Senior Member
 
Join Date: Apr 2006
Location: Norway
Posts: 1,643
Default

Seems Perl & PHP are cousin, however PHP has all good functionality of perl; constructs, syntax and so on making it less complicated than perl. Btw PHP seems maturing very fast IMO.
__________________

Reply With Quote
  #7 (permalink)  
Old 10-23-2006, 01:15 PM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default

As a PHP coder I have to take issue with some of Sanderson's comments. There is nothing about PHP which maked it easier to read, update or maintain than Perl. In fact just the opposite - PHP is a very unstructured language and a lack of coding standards plus a lot of amatuer coders means that much of the code written using it is a horrible procedural mess. If you want structure and well defined, easily maintained code then you shoudl look to Ruby in Rails or a PHP framework like Cake.

PHP is only simple in as much as it does not contain some of the complex language constructs found in C or even Java. Any programming language gets complicated once you start building complex logic structures and PHP, particularly PHP5 is no
different.

I like PHP for a number of reasons but it's simplicity is not one of them.
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
Reply With Quote
  #8 (permalink)  
Old 10-23-2006, 02:00 PM
Senior Member
 
Join Date: Apr 2006
Posts: 295
Default

PHP may not be that simple and easy to learn but once you get the hang of it, you can grow to learn advanced concepts such as Object Oriented Design, inheritance, type-hinting, exceptions, class abstraction, overloading and reflection. I think Ruby on Rails is easier to learn as compared to PHP and with Ruby on Rails one can have a good foundation for both system level scripting and web development.
Reply With Quote
  #9 (permalink)  
Old 10-23-2006, 03:21 PM
Administrator
 
Join Date: Mar 2006
Posts: 1,700
Default

Perl has lost its popularity recently and very few developers can be found working on perl. Perl is a great scripting language and I wish we could do something for its betterment.

I have strong reason to call perl to be better than php as the functionalities that you can achieve with perl cant be done with php. php is just for basic web designing and development. You need to know perl to make something happening and different from others.
__________________
Web Hosting UK - ASP MSSQL Hosting - cPanel Linux Hosting
AIM : webredback || msn : andrew @ webhosting.uk.com
Toll Free : 0808 262 0855
Reply With Quote
  #10 (permalink)  
Old 10-23-2006, 04:40 PM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default

**Rolls Up Sleeves And Gets Ready For Fighting**

'Just for basic Web designing and development' ? Wash your mouth out Admin

PHP5 is a fully formed object-oriented language. It has some advanced concepts (such as garbage collection) which are missing from languages such as C++. Perl is a nice language but I can tell you from personal experience that PHP can be used to build complex software projects that scale remarkably well. As an example, the project I'm currently working on has to support numerous business logic operations on over 100,000 records where each record can consist of over 50 individual data elements. The business logic includes interacting with a number of Web services over different protocols and algorithms wich incorporate elements of artificial intelligence (particularly contextual analysis). In all honesty we didn't choose to develop in PHP (it was part of the project spec) but we haven't found it to be a handicap either.
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
Reply With Quote
  #11 (permalink)  
Old 10-24-2006, 09:51 AM
Senior Member
 
Join Date: Apr 2006
Location: Norway
Posts: 1,643
Default

IMHO, php5 is much better for web-based apps, while Perl is excellent on the command-line, there is always pros & cons of every language either way you have to accept, say for an example- Perl has lexical scope & dynamic scope while PHP doesn't have these.
__________________

Reply With Quote
  #12 (permalink)  
Old 10-24-2006, 11:10 AM
sanderson's Avatar
Moderator
 
Join Date: Oct 2006
Location: Durham
Posts: 261
Default Perl vs PHP vs Perl

This will be never ending debate on Perl vs PHP or say PHP vs Perl. Of course perl is very strong, robust one with more maturity than PHP. But for a newbie? is more complicated for web development. But for experienced programmers? - One of the Linux Administrator on the same subject said that he had used perl for many years and using PHP too since few years back. But he says out of 10, 9 times his choice is perl. The reason one can easily find out, because he knows perl just like his back of hand. Though you will agree that Perl is harder than Javascript. Now PHP is another language. In the world of programming PHP and Perl are competitors. The webmaster has a choice and uses one of the language according to the project. But for programmers, particularly web designers, as they are learning PHP as the first language, they will be inclined to use their favourite one – in this case PHP. Because as one can said it is SLIGHTLY easier to learn from a webdesign point of view. Either language will be adequate, it depends on lots of factors, users! Of course favaourite one is PHP.
Reply With Quote
  #13 (permalink)  
Old 02-01-2007, 03:25 PM
new member
 
Join Date: Feb 2007
Location: Manchester
Posts: 1
Send a message via Skype™ to janderson
Default

I am currently looking to find a Web Developer with Perl, XML and HTML for a role in Manchester but it's proving difficult. Why do companies still use perl if as you all say php seems better? BTW if you guys know anyone wanting a permanent job then let me know!
Reply With Quote
  #14 (permalink)  
Old 02-01-2007, 04:04 PM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default

Don't know of anyone off hand but I'll ask around. Perl isn't as widely used as a lot of other languages which is probably why you're struggling to find someone. It's not the case that PHP is necessarily better than Perl, in fact I use PHP every day and there are bits of it that annoy the hell out of me, it's just that each has its advantages.
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
Reply With Quote
  #15 (permalink)  
Old 05-03-2007, 05:06 AM
Senior Member
 
Join Date: May 2007
Posts: 142
Default

I'm still sticking with PHP, but the only thing I hope to be implemented and possible in PHP is to use new DLLs' APIS without compiling the whole PHP core to be able to recognize them , when this is very possible in PERL!
Reply With Quote
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:00 PM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum