Any site, written in any language, can be hacked easily, if it's written wrong. The language has nothing to do with the security level, the skill and experience of the person writing it determines that. Sloppy ASP, Ruby or Python is as easy to hack as sloppy PHP.
Php is most popular server side scripting, fast, stable, secure, easy to use and open source language.
Php is the open source language and its very easy to learn & implement because it is embedded within html.
I like using PHP cause everything is Simple, Free and there's a lot of help at the internet, when you have a question or just are stuck.. I use ASP, .NET also.. Just whatever is needed for the thing i'm creating.. It depends what resources i can use on a particular system.. It doesn't mind me what's the best.. To me it's more what's usable for this situation.. I like classic ASP and PHP the most.. Microsoft's .NET realy ask's particular resources and the .Net way of making a simple program is a bit to complicated.. I like the short script's more.. and offcourse the fact that when you develop in PHP, you almost everywhere can run your product.. There are more places you can play FREE with Apache and MySQL then there are places with a whole microsoft .NET environment.. As i've said i try to use all techniques i can think off.. It's like when you are programming HTML.. Do you use Javascript? offcourse, if you need it for something.. so, why don't mix others in also?? You can jump from asp to php also.. like you jump from HTML to PHP.. I would not say what's the best.. but what's the best usable in a particular situation..?
Thanks for your reply... And also can you tell me which browser is best for developing an website?????
PHP is open source and you can easily find resources on building a site and you can use Mysql for database handling.
I use Firefox - with Firebug and FirePHP - for developing PHP sites. But, since most of our customers are still using IE, I have to check everything in a few versions of IE too (and Chrome and Safari). Instead of echo statements to the screen to see what's happening at any point in your PHP script, FirePHP lets you sent comments, values, etc., to a console, so you can see what's happening. And then you can turn it all off by changing one occurrence of "true" in the file to "false". (You don't want your users seeing your debugging, and they can run FirePHP too.)
PHP is far more better user friendly language than other web development language. The coding is much like of C and also have the embedded sql server. PHP is an open source language so you can update or add some extra feature in it. Also run on every platform. So these are some quality that makes PHP is an obvious choice for most of the developer as well as for the company also.
PHP is harder than ASP. PHP syntax is very similar to C/C++ whereas ASP syntax is similar to Visual Basic. I find ASP slightly more restricting that PHP though, and the code doesn't run as quick as PHP.
php is largely king because it runs on just about everything and has a large set of extensions for just about anything. It took off where perl and python didn't because it had better integration with Apache at the dawn of the LAMP era. Both python and perl for a long time had to be run as cgi scripts while php had a dynamically loadable apache module. -=- With respect to the security of building a web site with php, web sites built with php are hacked all the time. It doesn't mean php is insecure, but rather, the web site was poorly coded. That's true with any server side language.