Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: CGI/Perl vs PHP

by cfreak (Chaplain)
on Jun 02, 2003 at 21:46 UTC ( [id://262503]=note: print w/replies, xml ) Need Help??


in reply to CGI/Perl vs PHP

I'm stuck with PHP for most stuff in my current job. It sucks. I hate it. Sure its easy to learn if you enjoy looking up function names on PHP.net all the time. Function name for everything is a bad language design.

Contrast to Perl which gives you a set of tools such as embedded regexes which automatically make a plethora of PHP text processing functions obsolete (Yes you can use Perl Regexes in PHP, it however is a pain, they aren't embedded and its not quite the same)

CGI is fine for small sites without a lot of traffic. Yes PHP is faster than CGI, but if you need speed mod_perl is better anyway. Also a previous poster mentioned that mod_perl gives you access to the Apache::API. PHP does not do this, in fact doing anything with Apache using PHP is a real pain because it is intentionally separated for 'security' concerns

Which brings me to another thing. You may hear PHP developers talk all the time about how PHP is so much more secure than Perl. Simply not true. You can write insecure programs in PHP just as easily as Perl. In fact PHP I think lures newcomers into a false sense of security because of all the "security" inherent in the system, when in reality there is nothing inherently secure in PHP.

Yes I'm bitter about using PHP at work, I apologize :)

Lobster Aliens Are attacking the world!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-16 11:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found