SDA India is an online resource for Software, Development,IT, Architecture, Open Source, Mobile, Security, Databases, Delphi, C, OS, Asp, .Net, Php, Xml, Java

From the News Desk
Wednesday, 19. September 2007

10 Reasons to Love PHP




Krystian Hoffman has a ten point list on what put him on the “pro” PHP side.The best reasons to use PHP is its ever-resourceful community, the fact that learning PHP is easy, PHP's great performance rate, it's open source, built-in libraries for most functions you need, its portability, its strong OO support since version 5, the ability to use a large variety of databases with PHP, and commercial support 'from Zend andother organizations] and non-ceommercial support 'from the community].

Here's Krystian's detailed explanation:
  • The PHP Community: so what makes the community so great you might ask? Well there are many reasons that makes it so great and I’ll mention the most important reasons. For once they are a great resource, whether it comes to getting help or finding code examples regarding PHP. You have a problem with your code, no problems as there are literally hundreds of sites with forums and mailing lists where you can ask for some help to figure out what’s wrong. You can ask for advice if you hit a wall while coding and don’t know what solution would be best. There are a great amount of sites with tutorials and code examples on how you code certain PHP applications and scripts, where you can see how you go about in making a forum or whatever you might be wondering, or simply get inspiration to your projects.
    • Learning PHP is easy: it’s very easy to learn and get a hang of compared to some other languages.

    Another reason why I like PHP is because it’s very easy to learn and get a hang of compared to some other languages I’ve learnt over the years. "I started learning PHP in the end of the fifth grade, so I was quite young in my opinion and I managed to learn it, not master it at the time, but I could produce some simple scripts back then. Learning PHP isn’t rocket science and with the great amount of help found on the net it makes the learning process much easier. As I mentioned earlier, there is a great community that you can take advantage of while learning it. Another thing that makes PHP easy to learn for other programmers, especially the Perl, C and C-like language programmers (Java and C++) is that the PHP syntax is based on primarily C and Perl.
    This means that if you have experience with any of those languages you will pretty much be producing productive code instantly." Another thing that makes PHP easy to learn for other programmers, especially the Perl, C and C-like language programmers (Java and C++) is that the PHP syntax is based on primarily C and Perl.
    • Great performance: the performance of PHP is great, it’s very efficient. Using it on a single inexpensive server you can literally serve millions of hits each day. If you want to run a large number of commodity servers then your capacity is for sure unlimited.
      • Low cost: it’s free and you can download the latest version of PHP at any given time from www.php.net
        • It’s Open Source, You can modify it: If you want to modify or simply add something to the language, you can do it. Unlike commercial closed-source applications you don’t have to wait for the manufacturer to release patches, if you have the knowledge you can do it yourself. But with the great community around PHP, patches and fixes appear much faster, a lot thanks to PHP being Open Source, more people can contribute. Also you won’t have to worry that the manufacturer will go out of business, thanks to it being Open Source and the great community the product lives on.
          • Built-in libraries: PHP was designed to be used on the Web, because of this it has a lot of built in function, to be used for many different web related tasks. You can connect to web services and other network services, parse XML, send email, generate PDF documents, send emails and generate GIF images on the spot. This is just some of the functions you find in PHP. Apart from the official libraries, some programmers have developed more libraries that can be found, whether it’s a library with functions to work with audio or video or something completely different it most likely already exists. And that’s another good part of PHP; you can add custom libraries to it all after you needs.
            • Portability: today PHP is available for many different operating systems whether it’s a free Unix like operating system such as Linux or a system you paid for like Microsoft Windows you can run PHP on it. I won’t list all the operating systems that you can run PHP on here, for that I suggest you to google it.
            Well written code will usually work without modifications on different operating systems with no hassle. Of course there are functions in PHP that only work on a specific operating system, so it not working on a different wouldn’t be any surprise.
            • Strong Object-oriented support: PHP version 5 has very well designed object-oriented features. It now has features like inheritance, private and protected methods and attributes, abstract classes and methods, constructers, interfaces and destructors. There are even features of built in iteration behavior which was available in version 3 and 4 but the over all object oriented support in PHP 5 is much more complete in php 5. If you program in C++ or Java then all this will be familiar to you, and PHP’s syntax being very similar as well will just make it all a lot easier.
              • Interfaces to a large variety of database systems: Whether you’re using MySQL, PostgreSQL, mSQL, Oracle, dbm, FilePro, HyperWave, Indormix, InterBase, Sybase databases, you can connect to those with PHP, there are many more but I found that list long enough. PHP 5 also has a built in SQL interface to a flat file called SQLite.
                • Support available: Zend technologies the engine powers PHP offer support and related software on a commercial basis. So if you’re a company which wonders if choosing PHP will leave them in the dark then here’s you’re answer, support is available if needed. Also for the non commercial users there’s support available in another form, the PHP community which I mentioned earlier.



Post a Comment
Name
Title
Comment
Menu
News Desk
Feature Stories
Articles
Interviews
Case Studies
White Paper
Analyst Corner
Planet SDA-India
SDA Events
INDIA IT Event Calender
IT Jobs
Advertise