Welcome Guest ( Log In | Register )



2 Pages V   1 2 >  
Reply to this topicStart new topic
> Perl Vs Php, What's in your website?... and why?
Perl Vs PHP
Perl Vs PHP
Perl [ 1 ] ** [8.33%]
PHP [ 10 ] ** [83.33%]
Other [ 1 ] ** [8.33%]
Total Votes: 12
Guests cannot vote 
rantsh
post Sep 7 2005, 06:16 PM
Post #1


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 55
Joined: 2-September 05
Member No.: 8,263



Ok, so I've heard a lot of both languages, I've used php and I was learning Perl a while ago...

If you had to choose between these 2 languages to develop a website, which one would you use and why?

I'm attaching a poll in this message please vote
Go to the top of the page
 
+Quote Post
Trekkie101
post Sep 7 2005, 08:43 PM
Post #2


Teh Teckeh Trekkeh
Group Icon

Group: Members
Posts: 682
Joined: 8-September 04
From: Scotland, UK
Member No.: 389



Perl is a language that isnt based on just the web, Perl is a full command line language, and GUI can be added and tool kit is there and Perl can be used to program entire operating systems if it was needed to and infact is as a codebase on a Linux distrabution. Its pretty fast and can be as object oriented as you like which apparently makes it much easier to program in although im not in full agreement about that.

Perl has CPAN for its modules so theres modules for litteraly everything from checking disk speed to AI bots brains and RSS feed readers.

PHP is the new and upcoming language that more and more people seem to want to learn, its fast and optimised, logical and doesnt have as many pitfalls as perl. It was designed as web language but can be used elsehow but not very easily. The documentation for PHP is second to none its amazing.

PHP is my personal favourite as I like the way it works and flows although from what ive used of perl its very logical.
Go to the top of the page
 
+Quote Post
vizskywalker
post Sep 7 2005, 09:26 PM
Post #3


Techno-Necromancer
Group Icon

Group: Members
Posts: 1,018
Joined: 13-January 05
From: The Net
Member No.: 2,127



They are both useful for various purpoese. I prefere CGI (through perl) for setting cookies, but PHP for dealing with MySQL databases. If I had to pick one for webpages, I'd probably go with PHP simply because it was designed for webpages, can be embedded in webpages, and has various webpage features that perl doesn't.

~Viz
Go to the top of the page
 
+Quote Post
mastercomputers
post Sep 8 2005, 02:32 AM
Post #4


PESTICIDAL MANIAC
Group Icon

Group: Members
Posts: 626
Joined: 1-September 04
From: Auckland, New Zealand
Member No.: 27



This has been discussed, quite intensively too.

Languages are made for a purpose, and they usually do their purpose quite effectively. Perl has been around for a long time, and languages have taken it's ideas and used them in their language.

PERL is in my opinion more powerful than PHP, it's string manipulation and ability to handle large amounts of data, file I/O, etc makes it very suitable for large scale applications, and quite a power commandline tool.

PHP shares similarities, and can do the same thing, but if we took both languages to their extremes I would think PERL would come out on top.

I'm more to using PHP than Perl for web development. Which is one of PHP purposes it was created for.


Cheers,


MC
Go to the top of the page
 
+Quote Post
rantsh
post Sep 8 2005, 08:00 AM
Post #5


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 55
Joined: 2-September 05
Member No.: 8,263



So up to now, although all of us recognize that PERL is very powerful, we stick to php... interesting... The reason I brought this topic up is because on one of my old jobs we were working with perl in a very intense fashion (meaning that we used PERL for almost anything).

A little further in the past, I developed my thesis using mainly in php, and I found it very powerful and easy to use...

Yet, as I spoke to one of my friends (old college teacher and debian lover/freak) he told me "PERL is the path to the future", so that made me think 'Is it? Are we at the door (can't think of a better english to describe the moment) of a major web developing change?'. Of course we're at the doors of a major standalone software developing revolution, since with the new multi-core processors and the fast evolution of High Performance computing, standalone software as we know it (at least I do) which is linear and not threaded is fastly dying to give path to a full set of techniques which involve threads and concurrence as our main thought when designing.

But, does this apply to web development? are we going to have to abandon good old php because PERL is more efficient and secure????

As you may notice these are a big bunch of crazy thought of a drowzy/sleepy programmer, but I really wish to know if I'm alone on this thoughts... Is php going to give way to PERL, or the other way around? or do you think they'll both continue advancing steadily for us to keep using them as we have always done?

Please excuse me if I don't make any sense, or share your opinions if I do (actually you have more reasons to share your opinions if I don't make any sense). Either way, good luck to all, and I'll see you around...
Go to the top of the page
 
+Quote Post
solanky
post Sep 8 2005, 04:56 PM
Post #6


Advanced Member
Group Icon

Group: Members
Posts: 131
Joined: 21-May 05
From: New Delhi, India
Member No.: 5,295



I don't have a great knowledge of Perl or PHP but as far as I know Perl is the complete language and it can also be used in web scripting. But PHP is purely for web development. PHP is very easy to learn and it is a good and cheap alternative of ASP/ASP.NET/JSP server side technologies. I will choose PHP between two of these.
Go to the top of the page
 
+Quote Post
mastercomputers
post Sep 9 2005, 08:05 AM
Post #7


PESTICIDAL MANIAC
Group Icon

Group: Members
Posts: 626
Joined: 1-September 04
From: Auckland, New Zealand
Member No.: 27



I believe PERL is paving the way for other scripting languages. Ruby, which is another scripting language is still struggling to make it a successor of PERL, from the sounds of it, Ruby is suppose to be better, but not too many people took onto it, so it's still trying to make it's way through the door. Maybe it's a similar affect that happened to C or C++.

During PHP 3.0, I use to rewrite my CGI scripts/programs into PHP, not because I thought PHP was better, I just liked using PHP for web development and it was to help me learn PHP, prior to 3.0 however, I stayed with PERL, it just hadn't gain my interest then.

I don't think a language will shine on top, because so many proefficient programmers out there can each shine with their language or choice. Recently I was impressed with a programmer who wrote an Assembler in VB, not that I didn't think VB was capable, his assembler worked just as well as other assemblers. I'm not even fond of VB, but I do get impressed by some of the work these programmers do with it.

If we combined many different languages into an application, each being standalone using their own interpreter, would we be able to increase the performance or degrade it. This would be something I would like to find out. It may or may not affect the server load at all.

This is probably the only reason why I stick with one or the other, however if the program scale is to be large, I would consider PERL.


Cheers,


MC
Go to the top of the page
 
+Quote Post
vizskywalker
post Sep 9 2005, 09:00 PM
Post #8


Techno-Necromancer
Group Icon

Group: Members
Posts: 1,018
Joined: 13-January 05
From: The Net
Member No.: 2,127



MC, I can answer your question: it depends on what languages are being mixedand in what way. For example, hardware direct access in C++ can be done thorugh assembly functions if compiled separately, and if the assmebly functions are done well, it will be faster. However, generally, mixing BASIC languages with C languages slows the process down. Mixingdifferent interpreted languages also slows things down as multiple interpreters must be opened into memory. compiled mixtures work well if they are precompiled, like the C languages and Assembly, and if both elements were designed to work together and are more eficient on their on, and are merged into one program. Scripted languages largey dpeend on whther the interpreters are resident in memory, and whether one scripting language offers marked efficiancy increases in one task over another. Because there are so many variables, it is usually easier to just stick with one language, and for most programmers, even advanced ones, proves to be more efficient programs.

~Viz
Go to the top of the page
 
+Quote Post
vujsa
post Sep 10 2005, 04:34 AM
Post #9


Absolute Newbie
Group Icon

Group: Admin
Posts: 888
Joined: 20-February 05
From: Indianapolis, Indiana, USA (Midwest)
Member No.: 2,714



I started using PHP when I noticed a book at the bookstore about it. It talked about Apache , MySQL, and PHP installation and very basic use. I started to learn right away. I was surprised how quickly I was picking everything up. Of course I had some limited programming encounters prior to the discovery of the book, but the book has set me on a new course.

In 1985, I got my first computer. It was ready to go for programming in BASIC. I printed "hello world!" a million times on my screen and even got to where I could program music into the computer.

In 1992, I took my first formal programing class. Turbo C! I didn't do as well in the class as I had hoped but I started to pick up the basics of all modern programming.

In 1995, I printed the source and output of the Indiana University Home Page. I went line by line until I understood every bit of HTML for that page. Shortly there after, I learned a little bit of JavaScript and made some engine displacement calculators and what not. Pretty simple scripts I must admit.

In 1999, I Downloaded and installed my first CGI script called Links (Gossamer Threads). As soon as I got the link indexer / search engine up and running, I started to notice that there were modifications that I wanted to add. The script was programmed entirely in Perl and the mods were manual find and replace or find and add. Having the mods as a roadmap as I started to moddify the script, I began learning a lot about Perl. I think that I could never write a full script in Perl with my current knowledge but what I learned helped me better understand PHP.

In 2003, I bought the PHP book that I have mention and started learning PHP. I have by no means mastered PHP but, I'm getting to where I can usually do what I want with it. The similarities between Perl and PHP are remarkable but that is also true about C. I have found PHP to be much easier to learn than Perl but I have very little interest in programming outside of the web now.

I was told by a friend of mine that is a very well paid free lance programmer that the language really doesn't matter. He's older now so his primary laguages are also older. He said that he tends to use fortran most often. He suggested that if the programmer knows the language well and is a good programmer, then he/she can program anything to do anything with any language. While many languages were design based on certain needs of the creators, the general abilities of all laguages are more or less the same. If a language doesn't contain the out of the box functionality that you require, then you'll simply have to write a more complex program.

My point is that there is no reason to think that any language will fall to extinction. There will always be a new flavor that is most popular but if a language as old as fortran is still being widely used, then it stands to reason that PHP and Perl will also survive.

For my money, I'll stick to PHP for the foreseeable future. Its easy to learn, easy to use, and currently has a lot of applications built on it.

vujsa
Go to the top of the page
 
+Quote Post
ruben
post Nov 22 2005, 09:06 PM
Post #10


Wheeeeeeee!
Group Icon

Group: Members
Posts: 245
Joined: 19-October 05
From: DG, Belgium
Member No.: 9,200



I use PHP because I do not know Perl and I'm scared of the cgi-bin folder ^^ I haven't reached the borders of PHP yet, so I don't see a reason to learn Perl. I think PHP is a very easy to understand language and the best thing is that you can learn while you write. I just write and when I come across a function I need I look it up on php.net (usually they have the name I imagine) and then I can use it. If there is a usage problem I will usually find it in the comments (and additionally some handy scripts that are ready-to-use.)
I think PHP is the way of the most, because it is just damn popular, you rather get PHP than Perl on a freehost and it's easier to learn.
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Fast ReplyReply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. WebSite Development and Management Tools(10)
  2. Favourite Bands(64)
  3. What's The Best 3d Animation Software?(15)
  4. Notebook Or Laptop?(16)
  5. Whats A High Quality Gaming PC Specs(18)
  6. Boast Your Computers Specs.(160)
  7. Who Is Your Favourite Free Host?(144)
  8. My Review Of Runescape... What's Yours ( Poll ) ?(67)
  9. What's The Best CMS(38)
  10. 1 More Administrator Needed For Runescape Forums Website(1)
  11. Blender(4)
  12. Effective Website Promotion Without Spamming!(20)
  13. Free Web Hosting: (jammerjd)(2)
  14. Free Web Hosting: (mish)(2)
  15. Free Web Hosting: (khalilov)(2)
  1. Free Web Hosting: (xerxes)(1)
  2. Free Web Hosting: (efrain_aguilar)(2)
  3. Why Turkey Could Not Open The Website From China?(4)
  4. Free Web Hosting: (putnik) - denied(1)
  5. Free Web Hosting: (eggie)(1)
  6. Free Web Hosting: (adavak)(1)
  7. Free Web Hosting: (jersey)(0)
  8. Free Web Hosting: (entheone)(2)
  9. Free Web Hosting: (jezstarr)(2)
  10. Free Web Hosting: (mikemastah)(1)
  11. Free Web Hosting: (aici) - denied(2)
  12. Neoseeker - Hardcore Gaming And Computer Website(4)
  13. Free Web Hosting: (nelsontr4n)(0)


 



- Lo-Fi Version Time is now: 12th October 2008 - 04:37 PM