php compare with CGI

if thing in term of server resorce does php use resorce form server less than CGI
teeraAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

m1tk4Commented:
You can't compare the two. PHP is a language. CGI is just a standard of communication between the Web Server and an external program (which can actually be written in PHP as well). Resource usage depends totally on your particular setup and what your PHP code or CGI programs are doing.
0
TomeeboyCommented:
If you're talking about Perl (commonly reffered to as CGI, even though the actual language is called Perl, and it processes CGI):

PHP was designed specifically for scripting web pages, which means it has many built-in functions to allow you to quickly and easily perform common tasks (tasks that would require you to write more lines of custom code in Perl).  PHP is generally considered to be a faster language, though I've heard arguments that Perl can function just as quickly if done correctly.  For most web purposes, PHP is a better choice in my opinion.  I also feel that it's better with accepting form data and working with databases (MySQL in particular, which is the most popular one to use with PHP).

With that said, both languages have about the same learning curve, and they can both do a lot of things.  PHP seems to be more widely used and supported these days, and I would imagine that it will keep getting better as newer versions are released.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TomeeboyCommented:
Of course, you can read arguments for both languages all day long:
http://www.google.com/search?hl=en&lr=&q=php+vs+perl

However, I think PHP has been pulling ahead quite a bit over the last few years when it comes to picking a language for web development.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.