Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Not Inciting a Holy War

by le (Friar)
on Jun 18, 2000 at 02:19 UTC ( [id://18687]=note: print w/replies, xml ) Need Help??


in reply to Not Inciting a Holy War, but...

Well, I am currently developing a web application for our helpdesk. It relies on a MySQL-database and the frontend is done in PHP. The app is (at the moment) used for customers mail queries. Right now, I consider porting it to Perl, and this is what came my way:
  • PHP is much faster than plain Perl/CGI. (No wonder, it's an Apache module.)
  • Mod_perl might be as fast as or faster as PHP (I'm currently figuring out.)
  • Developing in PHP is quiet easy: besides the already mentioned automatic variable creation, I find it very handy, that you can put your PHP code directly into the HTML page. You don't have to wrap all your HTML into print() calls.
  • I really miss a PHP-CPAN. Because the app is more or less an email client, I have to deal with attachments and stuff. Finding a working, MIME-handling PHP class was really a pain, Perl has great MIME modules.
  • PHP can natively do HTTP Authentication. Simply send a 401 header and find username and password in special variables.
  • If you need database support, you have to recompile PHP (which is rather annoying). Perl just needs the proper DBD-module.
Just my .02 cents.

Replies are listed 'Best First'.
RE: Re: Not Inciting a Holy War
by Maclir (Curate) on Jun 19, 2000 at 05:58 UTC
    One comment I would make regarding:
    Developing in PHP is quiet easy: besides the already mentioned automatic variable creation, I find it very handy, that you can put your PHP code directly into the HTML page. You don't have to wrap all your HTML into print() calls.

    Check out Embedded Perl. This allows you to incorporate your perl program logic within your html.

    Like most Perl situations, there is more than one way to do it. If you have lots of program logic, and a small amount of html, look at CGI.pm; if it is the other way around, EmbPerl. Either takes advantage of the performance of mod_perl.

    I cannot comment on some of the more sophisticated solutions such as Mason.

    Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found