Author |
Message |
metsfan922
Junior WebHelper
Joined: 09 May 2002
Posts: 15
|
Posted:
Mon Jun 24, 2002 4:16 pm (21 years, 10 months ago) |
|
without being biased, please tell me the difference, which is more efficient, and which u prefer and why |
|
|
|
|
Justin
4WebHelp Addict
Joined: 07 Jan 2002
Posts: 1060
|
Posted:
Mon Jun 24, 2002 4:30 pm (21 years, 10 months ago) |
|
PHP -
1) More Efficent
2) More Reliable
3) Faster
4) Easier to Learn
5) No Internal Server Errors
6) Easier to configure Scripts. |
|
|
|
|
metsfan922
Junior WebHelper
Joined: 09 May 2002
Posts: 15
|
Posted:
Mon Jun 24, 2002 4:33 pm (21 years, 10 months ago) |
|
is perl more powerful than php? my friend described php as gay because its not powerful and that perl is the only real language |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Mon Jun 24, 2002 5:09 pm (21 years, 10 months ago) |
|
I'm not sure about the more powerful question. In what way?
PHP was meant for the web, Perl wasn't originally.
I must say that I prefer PHP, even though I discovered Perl first, because Perl can't be embeded in the HTML, and because it's a pain to debug. |
________________________________
|
|
|
|
Peter
Team Member
Joined: 09 Jan 2002
Posts: 147
Location: UK
|
Posted:
Wed Jun 26, 2002 10:25 am (21 years, 10 months ago) |
|
It depends what you want to use it for. PHP is basically a web scripting language, and is designed for rapid web development.
Perl is a general programming language with great text manipulation features, but a really variable syntax (there's no one true way to do something in Perl) and I've found it impossible to get to grips with properly, unlike PHP.
It's better to treat PHP as it's own class of language and compare Perl with Python, which is the language I'm currently learning (along with Actionscript/ECMAscript). Brilliant for building GUI... but web work is much harder in python than PHP.
HTH
Peter |
________________________________ Maple Design - quality web design and custom programming |
|
|
|
amadeus
Junior WebHelper
Joined: 13 Jul 2002
Posts: 17
Location: France
|
Posted:
Fri Jul 19, 2002 12:17 pm (21 years, 9 months ago) |
|
as far as web programming goes: stick to php.
i learnt perl and did an enormous amount of coding, and then discovered the alternatives in php... which are so easy! For example, PHP has lots of built in functions that are dead handy for webpages (dates, sorting etc.) that you'd have to code for yourself in perl.
php retains all form elements without having to program routines to decode them as in perl
php is very easy to integrate with html.
mysql support is super in php and much *much* easier than in perl.
perl isn't just a web programming language, and as such, it can be daunting as it has so many paths and uses... so like I said, if you want to program webpages, use php.
another thing, there are a lot more people using php who seem happy enough to share help with coding, than strictly "web-only" perl programmers, in my hunts for support too...
amadeus |
|
|
|
|
tyj82
Junior WebHelper
Joined: 26 Dec 2002
Posts: 5
|
Posted:
Thu Dec 26, 2002 3:06 am (21 years, 4 months ago) |
|
what about in flat file database ?
which one is better.
does PHP support matching word ?
using this ~=
can php read a files in the directory ?
can php get visitor info such as IP. web browser type, operation system, ...... like perl do ?
I never use php before but i have used perl for some time
i about to learn PHP for my web page |
|
|
|
|
tyj82
Junior WebHelper
Joined: 26 Dec 2002
Posts: 5
|
Posted:
Thu Dec 26, 2002 3:07 am (21 years, 4 months ago) |
|
oh ya
one more thing
does php support pop mail retrieving ? |
|
|
|
|
Darren
Team Member
Joined: 05 Feb 2002
Posts: 549
Location: London
|
Posted:
Thu Dec 26, 2002 11:27 am (21 years, 4 months ago) |
|
tyj82 wrote: | does PHP support matching word ?
using this ~= |
Supports regular expressions if thats what you mean.
tyj82 wrote: | can php read a files in the directory ? |
Yes
tyj82 wrote: | can php get visitor info such as IP. web browser type, operation system, ...... like perl do ? |
Yes |
|
|
|
|
jayant
Team Member
Joined: 07 Jan 2002
Posts: 262
Location: New Delhi, India
|
Posted:
Sat Dec 28, 2002 5:10 am (21 years, 4 months ago) |
|
|
|
|
AlexeyMas
Junior WebHelper
Joined: 02 Apr 2003
Posts: 1
|
Posted:
Wed Apr 02, 2003 10:38 pm (21 years ago) |
|
metsfan922 wrote: | without being biased, please tell me the difference, which is more efficient, and which u prefer and why |
It's a religion question.
Like what is better Clipper or FoxPro some years ago.
Perl is more powerful but have some weak spot.
Perl is more language like one. PHP is modern one.
By the way we try to create the Perl based system wich is more simple when PHP... We can't make this thing on PHP... imho. |
|
|
|
|
drathbun
WebHelper
Joined: 01 Mar 2003
Posts: 69
Location: Texas
|
Posted:
Wed Apr 16, 2003 1:41 am (21 years ago) |
|
Neither is better or worse than the other, they are just tools. Use the right tool for the job.
I run a forum with phpBB software written in php (like this one). But I have batch (cron) jobs scheduled to run at specific times during the day. They're written in perl.
Could phpBB have been written completely in perl? Yes, it could.
Could my batch jobs have been written in php? Probably.
But it comes down to which is the best tool for the specific job. Without providing more details, there can be no "best" answer. And if you read through the previous answers in this topic, you'll see that folks say "For {this task} use {this tool}" which is exactly what I am saying. For certain types of tasks, one (or the other) will be better. But in my opinion, there is no clear "winner" for best overall.
My two cents. Not adjusted for inflation.
Dave |
________________________________ Dave
Photography Site :: Query Tools Forum :: Weekend Fun |
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Wed Apr 16, 2003 6:00 pm (21 years ago) |
|
well said, dave |
________________________________ It's turtles all the way down... |
|
|
|
|