1: Open Source 2: Free {no license fee} 3: Widely Used on the Internet 4: Huge scope for P.H.P coder 5: Lot of build in functions Hope these are enough point to get you started...
Pros: -It's supported by almost all shared hostings , on dedicated server with just OS installed it's also very easy to add support -crowds of cheap coders around -easy-to-use for web applications developing model Cons: -No support for multithreading , garbage collecting, session/application scope memory. -No good model in language structure(PHP is not procedural nor OO nor functional etc). You have to take full control to avoid potentially dangerous style-mixing. -Many coders on the market have no good knowledge experience and do moronish code I think PHP is for simple sites, Java/etc. is for sophisticated web applications
Yes agree with this guy and few more things i need to add 6) Low maintence cost 7) Low development cost I am not sure you think in this way or not but some time people can think because if you go for .net they will charge a lots of money for license and other things.
Why do we use PHP? Well its simple really...find me an alternative??? lol - Perl: Lovely language but its OTT and has increased coding complexity - ASP: Generic Microsoft Replacement Brand A - C# .Net: See Above - Flash: Crap language, crap performance, crap security. PHP is an over bloated, sluggish, resource hoarding, server side only, security flawed and bug ridden piece of rubbish. However....its the best of a bad bunch, and it saves time from having thousands of web developers sat there rewriting millions of static HTML files by hand. I can't think of a better reason...lol Andrew
php is the fastest way to get a dynamic site online. You can amend changes directly to your site/pages in seconds while not having to produce a million side constraints like you do in .net itis very direct with variable recognition and has a million simple to use functions that you can easily depend on
And mentioned, but not outright said... Anybody can program in it! By the way... As far as Java goes; which is a great language... One of my quotes is... "If you want to build a nice window, you have to build a skyscraper to hold it!" C# is a first class language... Python rocks! Ruby is a gem... Eiffel is pure love... I like speaking with a Lisp! Smalltalk is the beginning of OO... C/C++ Hey! Assembler programmers do it with nibbles and bits.... And bytes, beets, and words... And on, and on, and on, and on...