Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: The REAL reason for why they choose PHP over Perl.

by exussum0 (Vicar)
on Jun 15, 2006 at 15:53 UTC ( [id://555530]=note: print w/replies, xml ) Need Help??


in reply to Re^4: The REAL reason for why they choose PHP over Perl.
in thread The REAL reason for why they choose PHP over Perl.

You've ignored something I've said. perl is more than just mason. If you wish to do database work, you have DBI and tonnes of DBDs you can install. You have Class::DBI and many other forms of data access. You have modules for PDF, Word. Mason doesn't support it outright, where php directly does.

In php-land, some large portion "modules" are actually c extension for php.

In php, you have the mysql_*, postgresql_* and the direct db functions and that's about it. Yes, pear is an abstraction layer, but nothing beyond abstraction has been done yet. perl has various forms of data access as i've stated before.

In perl, modules go into a namespace with a PERL5LIB path. Most of your code is written IN perl.

In php, you are limited to includes which don't use a lib path where most of your modules are written in c.

You can't write a multithreaded php application.

And there are differences between php and mason post installation. To add modules is completely different between the languages.

php is a web language first, and a programming language second. perl is a programming language first, and a web technology second. the internals and the language design lead toward this.

I could go on and on. but please, stop ignoring that this is perl vs php, not mason vs php. Mason is cute, and it mimics php.

Replies are listed 'Best First'.
Re^6: The REAL reason for why they choose PHP over Perl.
by Azhrarn (Friar) on Jun 15, 2006 at 17:04 UTC
    I'm not ignoring anything, what you're calling PHP supporting outright is a compiled in module. It's the same as saying Apache supports mod_perl or mod_php outright. Both perl and php have a process of including files or libraries. PHP's requires forethought and compiling in the server.

    Once it's included, it's just another module, php just dumps it in the main namespace.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://555530]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-03-28 10:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found