Jump to content

PHP v. Perl

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
8 replies to this topic

#1
Anicho

Anicho

    Newbie

  • Members
  • PipPip
  • 14 posts
I don't know which one to choise, which one is the best?

#2
Jacki

Jacki

    Learning Programmer

  • Members
  • PipPipPip
  • 80 posts
I think PHP is the best, it's the most used and compatible with web servers. I'm using PHP since 2-3 years and I can say that it's really good for all the web application. However, I have never used Perl.
Posted Image

Posted Image

#3
debtboy

debtboy

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 916 posts
Do you expect someone to offer advice,
when you supply NO information.

What type of site are you developing?
Do you expect high traffic?
Will you be using a database?
Shared or dedicated hosting?
Will you be able to install modules?
Do you have a language preference?
Will you be interfacing with existing software?
Will you be doing E-commerce?
Will you have external advertising?
Will you have multiple user accounts?
What hosting OS platform will you be using?
Is response time a factor?

These are just a few questions that may have
an effect on your choice.

I like that your considering Perl, an awesome
scripting and CGI language, but now you have
to determine if it makes sense.

#4
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
PHP is way more specialized in creating HTML output than what Perl is. On the other hand, Perl's text handling specialties is outstanding on that matter, but I'd say that Perl has fallen back to be a shell scripting language more than a web scripting language as it was in late 90's. (It's wasn't made for the web, but it became quickly the most popular one for the web cause of it's text treating possibilities.)
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#5
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I've used both to build websites and prefer PHP. Perl is a pain and PHP is so much easier. I still do CLI development with Perl. :thumbdown:

#6
debtboy

debtboy

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 916 posts
When Ajax is used Perl becomes more feasible. ;)

#7
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
why not just create an xml tree with PHPs SimpleXML and return that one to the ajax query? I really normally see no point for using perl for the web these days.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#8
debtboy

debtboy

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 916 posts

Orjan said:

I really normally see no point for using perl for the web these days.
Wow, that's a big statement...
I prefer to choose the right tool for the job, and right now
we don't know what the job is.

I use PHP and Perl (CGI) in my current CC member site :D

Here is a link that looks at this exact question:
Perl vs PHP

#9
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts

debtboy said:

Wow, that's a big statement...
I prefer to choose the right tool for the job, and right now
we don't know what the job is.

I use PHP and Perl (CGI) in my current CC member site :D

Here is a link that looks at this exact question:
Perl vs PHP

Of course, there is things perl do better than php, and I fully agree on using the right language at the right task. But I would not solve any web tasks with perl today. I would use php.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall