Why PHP is best

by 564 replies
hi,

there are many scripting language but generally most web application made using PHP why?
#programming #php #web development
Avatar of Unregistered
  • Profile picture of the author dvduval
    I would say one of the main reasons is it was the first scripting language that was widely used AND open source. As a result, many web applications and frameworks were created using the script, and PHP spread through those applications.
    Signature
    It is okay to contact me! I have been developing software since 1999, creating many popular products like phpLD.
    • Profile picture of the author txr7
      Originally Posted by dvduval View Post

      I would say one of the main reasons is it was the first scripting language that was widely used AND open source. As a result, many web applications and frameworks were created using the script, and PHP spread through those applications.
      actually, Perl was the first widely used and open source language.
    • Profile picture of the author tirupati
      2 things
      1) scripting language
      2) Open source
    • Profile picture of the author globalpageindia
      Originally Posted by dvduval View Post

      I would say one of the main reasons is it was the first scripting language that was widely used AND open source. As a result, many web applications and frameworks were created using the script, and PHP spread through those applications.
      Thank for this information.
      I think you have good knowledge about PHP.
  • Profile picture of the author dizen
    There are many reasons , one of the reason is it is cost efficient
    • Profile picture of the author phpindia
      Originally Posted by dizen View Post

      There are many reasons , one of the reason is it is cost efficient
      Yes, it is cost efficient but besides this reason there are plenty of other reason which can be considered to choose PHP first compare to any other scripting language. Its an opensource language and available freely on internet to develop beautiful websites. All CMS like magento, wordpress, Joomla and drupal also support PHP for better functionality and content management.
  • Profile picture of the author CBSnooper
    It is simple to program in, and works so well with mysql (also open source).
    • Profile picture of the author Poglia
      Originally Posted by CBSnooper View Post

      It is simple to program in, and works so well with mysql (also open source).
      This. I really like PHP, it's my favorite programming language. Way better than ASP.
      Signature

    • Profile picture of the author HostingWarrior
      Originally Posted by CBSnooper View Post

      It is simple to program in, and works so well with mysql (also open source).
      My Point also the same. In addition, it is more flexible as well as easier to learn.
    • Profile picture of the author phpindia
      [DELETED]
  • Profile picture of the author kellogg9
    There was always Perl which came before PHP and was popular too...There is also .Net which is actually more versatile than PHP....I think the biggest reason for its wide adoption is that PHP is 1) FREE and 2) Made exclusively with Internet in mind and so very mature to handle all kinds of issues 3) Easy to use.

    Perl was starting to show its age and although it was easy to use it was still a bit cryptic at times and it wasnt built really to handle the internet...it was built to parse scripts which was then adapted for the internet.

    .Net is a brilliant piece of work by Microsoft but it is because it is from Microsoft that many other systems (outside the PC) dont use it...especially since it requires a license to use while PHP is totally free.

    PHP fit the market for its time and was the best at its time that many people began adopting it.
    • Profile picture of the author LosingMyHair
      Originally Posted by kellogg9 View Post

      There was always Perl which came before PHP and was popular too...There is also .Net which is actually more versatile than PHP....I think the biggest reason for its wide adoption is that PHP is 1) FREE and 2) Made exclusively with Internet in mind and so very mature to handle all kinds of issues 3) Easy to use.

      Perl was starting to show its age and although it was easy to use it was still a bit cryptic at times and it wasnt built really to handle the internet...it was built to parse scripts which was then adapted for the internet.

      .Net is a brilliant piece of work by Microsoft but it is because it is from Microsoft that many other systems (outside the PC) dont use it...especially since it requires a license to use while PHP is totally free.

      PHP fit the market for its time and was the best at its time that many people began adopting it.
      All true. I started my career writing and modifying PERL scripts many years ago. PHP was in version 3 at that time. When version 4 hit, things really began to take off and I had a client tell me that I should really take a look at it.

      I scoffed because the syntax looked so "easy". How stoopid was that? Why should it be cryptic?

      The next thing I knew, I was dropping PERL altogether.

      PHP is so easy that is is widely thought of as a weekend programming language. I can't tell you how many people (both geeks and non-geeks) pick up a book and start write PHP code. Who wants to fool around learning constructs and configurations?

      <?php

      echo 'Hello world';

      Get 'er Done!

      And it didn't hurt that linux web hosts needed something simpler to install and offer their customers. PERL was not that solution. Even when I look at Ruby and Python, I think, "My mom would find it easier to learn PHP".
    • Profile picture of the author loenmilton
      HI FRIEND'S
      I THINK YOU ARE RIGHT
      I AGREE WITH YOU
      kellogg9
      There was always Perl which came before PHP and was popular too...There is also .Net which is actually more versatile than PHP....I think the biggest reason for its wide adoption is that PHP is 1) FREE and 2) Made exclusively with Internet in mind and so very mature to handle all kinds of issues 3) Easy to use.

      Perl was starting to show its age and although it was easy to use it was still a bit cryptic at times and it wasnt built really to handle the internet...it was built to parse scripts which was then adapted for the internet.

      .Net is a brilliant piece of work by Microsoft but it is because it is from Microsoft that many other systems (outside the PC) dont use it...especially since it requires a license to use while PHP is totally free.

      PHP fit the market for its time and was the best at its time that many people began adopting it
  • Profile picture of the author Safade Billy
    Because it is free and less complicated. And lots of free software available in PHP, so iy is widely used. Since it is widely used lots of free software's are created using php.
    • Profile picture of the author tundebj
      I'll always love PHP, i dont know what i could have done without it
      thanks to all who have made so much effort to see it this improved
  • Profile picture of the author graphic_designer
    its simple and less complicated..as compared to ASP..
  • Profile picture of the author blagoj
    PHP is easy and platform-independent scripting language. Open-source and free!
  • Profile picture of the author yaji
    The major reason is, hosting php applications are much much cheaper than others, say, jsp.
    Signature

    Thanks, Yaji

    Hypnosis Weight Loss Fun Info about Hypnosis Weight Loss | Cheap Car Insurance
    Cat Dandruff All about Cat Dandruff. A Must-Read for Cat Lovers

  • Profile picture of the author James12C
    All of the above and, for me, there is something elegant about it......
    Signature

    Frustrated beginner? Check out my FREE 4-part, 6 bonus LIST BUILDING COURSE

    Follow me on Twitter AND my Blog

  • Profile picture of the author thewebhostingdir
    Most websites are developed in PHP because it is free. Its web server, Apache is free. The best integrated database server with PHP is MySQL and is is free(community edition). Moreover, there is a wide variety of libraries developed by its lovers. (PHP, MYSQL communities are the largest)
  • Profile picture of the author MichaelHiles
    Well, it wasn't the first widely used one... that would have been Perl.

    There were many shell scripts out there long before PHP.

    It's certainly not the "best".

    No interpreted script can ever be better than a compiled binary. Period.
  • Profile picture of the author yaji
    Because hosting is much much cheaper...
    Signature

    Thanks, Yaji

    Hypnosis Weight Loss Fun Info about Hypnosis Weight Loss | Cheap Car Insurance
    Cat Dandruff All about Cat Dandruff. A Must-Read for Cat Lovers

  • Profile picture of the author radio
    as stated above, because the price is right!
  • Profile picture of the author ClickMonkey
    Hello! :-) As was mentioned by Michael, long before PHP there
    was something called Perl. And was it ever popular and widely
    used by many people! There is a lot of ignorance when it comes
    to a lot of things that relate to computer programming. But it's
    a losing battle to try and persuade anyone that one scripting
    language is better than another. I take a practical view and say
    that if PHP is all someone knows and understands, then use it
    as best you can to reach your ultimate programming objective.
  • Profile picture of the author SethTheUBotGuy
    I'm not a big fan of php. I only know it because everyone else uses it, and it's hard to get away from.
  • Profile picture of the author titleless
    Banned
    [DELETED]
  • Profile picture of the author CDarklock
    Originally Posted by JoannaRivera View Post

    there are many scripting language but generally most web application made using PHP why?
    In the mid to late 1990s, PHP was the only halfway intelligent server-parsed scripting language that ran on a Linux box, talked to an SQL database, was buildable as an Apache module, and didn't cost several thousand dollars.

    The competition has simply never caught up - not because of PHP's capabilities, but because there is so much code already written in it. For about six years, if you were doing anything remotely interesting on the web, you almost had to do it in PHP... and the late 1990s was a very, VERY interesting time for web technology.
    Signature
    "The Golden Town is the Golden Town no longer. They have sold their pillars for brass and their temples for money, they have made coins out of their golden doors. It is become a dark town full of trouble, there is no ease in its streets, beauty has left it and the old songs are gone." - Lord Dunsany, The Messengers
  • Profile picture of the author codepoint786
    Banned
    [DELETED]
    • Profile picture of the author CDarklock
      Originally Posted by codepoint786 View Post

      Sometimes I’ve seen people say PHP is a bad first language, because it teaches bad programming habits.
      That's because you're not really studying programming when you use PHP. You're enjoying yourself with a shiny new toy, and having fun. You keep doing nifty interesting things with it, and it's cool, and you bounce in your seat and clap your hands and point at the screen and send everyone on your IM client a link to your dumb page that prints "Hello world!" like your first program always does, and ten minutes later you tell them to reload because now it says "Hello BlueFart!" and you think that's really funny. You end up learning a shocking amount of stuff in a very short period of time, because you're having fun.

      And then some dillhole comes along and complains that you're learning bad programming habits, in much the same way his father came up to him when he was three and complained about how you're only supposed to color inside the lines.

      If you're going to do this for a living, you will need to learn good programming habits, but you'll do that when you're ready. Right now, you're playing. Don't stress out about good programming habits. Just have fun. You will have plenty of time to get all anal about your class heirarchies or the proper use of "for" and "foreach" later. Color outside the lines all you want.
      Signature
      "The Golden Town is the Golden Town no longer. They have sold their pillars for brass and their temples for money, they have made coins out of their golden doors. It is become a dark town full of trouble, there is no ease in its streets, beauty has left it and the old songs are gone." - Lord Dunsany, The Messengers
  • Profile picture of the author clubvikram
    Banned
    Very rightly said it is a very good first programming language. it is easy accessible since it is opensource and free. Initially it was a pain in the neck installing php along with apache web server and mysql.But now life has become very easy with WAMPP AND xampp.There are wonderful software products developed using php like oscommerce ,joomla.drupal,sugarCRM,dotproject and many others.
  • Profile picture of the author Johnny12345
    I like both PHP and ASP.NET. But one nice thing about ASP.NET is that you can program it with either C# or VB.NET (my favorite).

    In addition, C# and VB.NET aren't just "scripting" languages -- they're full programming languages, so they're more powerful and versatile than PHP.

    However, what's really cool is that you can also use C# or VB.NET to program desktop applications. It's kind of a 2-for-1 deal.

    Johnny
    • Profile picture of the author metabinltd
      I agree with most people on this topic.

      PHP is a powerful programming language, it supports classes, reflection, is modular, has a lot of support libraries built-in, you can create gui applications with it as well, i would say its a modern programming language rather than just a scripting language. If you want to do something really low-level thats not avaliable on the OS you can write a module for php in C or C++ (getting back to the original topic!)

      I really think the best place to start with learning C++ is learning object-oriented programming - at the moment php is the best place to start imho, then move on learning a bit about pointers before trying C++, although the biggest obstacle in learning how to program C++ is not the language itsself, but the compiling and linking applications together with the object files that you require for your project. Once this is setup, things become a lot easier.

      If you are looking to do web-programming in C++, i would recommend against it, you *can* do it but its not really designed from the ground-up for this type of thing.

      Hope this all helped!
      Dave
    • Profile picture of the author nontemplates
      Originally Posted by Johnny12345 View Post

      However, what's really cool is that you can also use C# or VB.NET to program desktop applications. It's kind of a 2-for-1 deal.

      Johnny
      Actually three or four for one. You can also do game programming and Rich Internet Applications. Cost is the reason why PHP is popular for online applications but learning C# is by far more powerful. You can write code that with a little tweaking will run on a PC, an XBOX, online or in an RIA.

      actually its a 5 in one advantage. C# will get you a good paying job in more places than PHP.

      But if you want to add some functionality to your site or be free to develop a CMS withut paying any money then its PHP.

      Although I am loving Python and Django.

Trending Topics