What Is PHP?

Foreword:We have established that PHP is a web development language that can make developers a hefty sum of money. Before we can start learning the language, we need to know a few things. What exactly is PHP, where didit come from, and what exactly does learning the language do for developers?

What Is PHP?

PHP was in development in 1994, when creator Rasmus Lerdorf wanted a better way to administer his personal homepage. It all began as a few CGI binaries that Lerdorf used to build several interesting applications. This in itself isn’t so exciting, especially since early forms of PHP couldn’t even interface with a database! Regardless, Lerdorf started what would become a very prominent web development language.

From thereon out, PHP became an open source piece of software that anyone could contribute work on. Over the years developers have added quite a bit of functionality to the language overall. Through all the changes that occurred over the years, we can now describe PHP as the following:

  1. Server-Side Scripting Language – In addition to being a scripting language, PHP is a server-side scripting language. This essentially means that PHP runs on the web server end of things (Which is why you should take advantage of our free hosting if you don’t have hosting already!). As we’ll learn later, PHP is processed on the server and then output to the browser after a request is made.
  2. Dynamic – PHP is a dynamic language, which is to say that it can change based on what we need it to do. On the other hand we have static languages like HTML, which don’t allow us to do things like pull and store information from a database. Dynamic languages are quickly becoming standard among web applications, with PHP at the forefront.
  3. Object-Oriented Programming – A buzzword in the programming industry is object-oriented design. Under this principle, the PHP is able to create “objects” that interact with each other. Object-oriented design isn’t necessary, but many supporters claim that using it helps organization and functionality in an application. We’ll review the topic more in future chapters, no need to worry about this topic just yet.
  4. LAMP – An architecture called LAMP describes the usage of four popular technologies to create functional web applications. The P can stand for several other competing languages, but PHP generally takes the name in addition to Linux, Apache, and MySQL. For now, we don’t need to delve into such topics; but it’s good to note LAMP philosophy has dictated the way many web applications have been created.
  5. Free-Form Language – Lastly, PHP is a free-form language. A free-form language will not observe whitespace when being output to the browser. This is apparent in HTML as well, where we can spank the Space bar as much as we want and not see any extra spaces when viewing the HTML in a browser.

What Can PHP Can Do?

What is PHP? So far, we’ve established that it is a programming language designed for creating web applications. It serves up dynamic content, works on the web server in the operation, and supports new-fangled principles such as object-oriented design. That’s all great, but what can PHP do exactly?

Take a look around, and we can see the results of PHP everywhere. It is estimated that PHP is in use on over 20 million different websites, and over a million different web servers (including ours!). We use PHP in applications such as simplifying templates, using user registration systems, storing and receiving information into a database, and even other exciting such as editing images on the fly.

PHP is used in many reporting and business applications, where built-in graphing and image creation can take place. Oddly enough, one of the first PHP applications ever created was an application to track statistics and report results in a convenient manner (Think back- remember Rasmus Lerdorf? He used his Personal Home Page language to create his own statistics counter!).

Thanks to recent years of innovation, technologies such as AJAX have made it easier to offer an easier experience for users of web applications. AJAX is used to silently load and store all sorts of information- whereas it was previously required to refresh the webpage or navigate to multiple other websites. We’ll learn more on AJAX in future sections, which will be a particularly fun section and something to look forward to in learning.

What Does PHP Do For Development?

Developers have a lot to benefit from PHP- and not just a surplus income. Rather, developers are able to take advantage of decreased development times, ease of use in deploying applications, and a fantastical support from a very large community.

To help further the process of developing a web application, multiple frameworks are available for
usage. Frameworks reuse many repetitive tasks, such as connecting to a database or storing basic information. Frameworks should not be used until PHP itself is learned, and a learning curve for most PHP
frameworks can be anywhere from a day to a week or more.

Also worthy of noting is the fact that some frameworks have support for security measures that programmers ignore on a common basis. PHP itself is not an insecure language, but it does leave holes where improper developers might leave mistakes in programming. Frameworks help cover up such holes, but regardless of the fact proper security tactics are good to learn as PHP itself is learned. (Don’t worry, we teach all the security topics you’ll need for PHP web applications.)

Closing Comments

PHP has been in development for a long time and there are plenty of things to learn about the language overall. Rest assured, we’ll learn more about everything discussed in this introduction to PHP with the coming chapters. Next up: what you’ll learn from this course and what you can do with the knowledge obtained therein.

Comments
  1. Brad Vigansky
    July 23, 2009

    I’m still in the dark. PHP still means three letters on the end of a link. It is still a mystery to me. How can I get a handle on it and see the programming code that goes with it. Where ever it is. I will continue reading and see where it takes me. Brad Vigansky

    Leave a reply
  2. kajal das
    August 8, 2009

    sir, How can i learn this language?How can i see the programming code?

    Leave a reply
  3. RITESH RATHOD
    August 18, 2009

    dear sir i want to learn this language perfectly so what should i do?
    pls help

    Leave a reply
  4. Patrick
    September 3, 2009

    How do i get to learn these codes?

    Leave a reply
  5. Neeraj
    October 8, 2009

    nice source to read lets see more what its contained…

    Leave a reply
  6. ashvin
    December 3, 2009

    Sir,
    Good day there!

    Well, I am an engineer and working as full time ecommerce executive with a reputed export house, apart from my current job I need to learn PHP, so please guide or help me to learn it up-to-date.

    thanks,
    ashvin

    Leave a reply
  7. priya
    December 8, 2009

    it is very basic level and tell something in real world application such as
    some example programes and some syntax and give how to save the program in php
    what are the industry use it and how to utlilities please publish it.

    Leave a reply
  8. vidhya
    January 8, 2010

    hello,
    Is it necessary to know C or C++ to learn PHP. Please let know as soon as possible.

    Leave a reply
  9. noufal
    February 27, 2010

    go to Web institute

    Leave a reply
  10. MULE
    February 28, 2010

    a’m doing my final year project by php so i want to know more. so if you can help me

    Leave a reply
  11. Serin
    March 1, 2010

    it is not necessary to know C or C++ in order to learn Php..:)

    Leave a reply
  12. jagjot singh
    April 26, 2010

    i wana learn this language bt, what basics are required for this?

    Leave a reply
  13. Umer
    May 10, 2010

    SOmeone told me that You can Earn sufficient money after learning PHP.Comapnies offered you Online JObs and give you $500 and even $1000 for project[as per requirements and experience].So i decided to learn this language.I request all to learn this language

    Leave a reply
  14. snr
    May 25, 2010

    to work with php you need to install server software in your pc… download it and install … apache..tomcat ..are few… xampp is best for beginers..

    Leave a reply
  15. Mominul Kabir
    June 9, 2010

    Dear sir, i am doing a networking job in Saudi Arabia but i want to learn PHP/MYSQL from here. so please guide or help me to learn it up-to-date.

    Leave a reply
  16. prasath
    June 10, 2010

    Dear sir,

    Am new for php i want to learn more in this,i need some example programes and some syntax and give how to save the program in php plz help me in
    coding .

    Leave a reply
  17. aayush
    June 21, 2010

    Give the example so its easy to unserstand.

    Leave a reply
  18. zubair aziz
    March 6, 2011

    sir
    The intro was good.I am a telecom engineer plus a freelance web developer.i would like to learn this language from 0 to infinite…
    Thanks for this page

    Leave a reply
  19. Akash Purohit
    September 28, 2011

    Hi,
    I am a PHP developer. I couldn’t understand some of the comments above. But I want to say a few things which might help
    1.PHP code cannot be seen by the user as it executes on server.
    2.It is a very easy language and You are gonna love it once you reach a level.
    3.It is fully compatible with HTML and its IO is also pretty good.
    4.There is a huge open source community to back this language up so you don’t need to worry about your doubts.

    Leave a reply
  20. Melos
    January 9, 2012

    Reading does help! But you actually need work to understand PHP/HTML and to do some experiments with what you learn.
    PHP isn’t hard to learn. The problem is that those jobs are getting filled up very fast and people are looking for something more like Windows Visual C+ or C++ which is way to hard and way to complexe…
    But keep reading and you will understand,trust me.
    I’m 17 right now and I have started creating Counter-Strike maps and since i was 15 and i learned compiling maps, putting them in web as a .zip or .exe file (PHP basics).
    Now I’m starting an RPG in 3D and I have never done game programming before but it is how i learn! Just keep doing some experiments and learn!

    Leave a reply
  21. dharmendra
    May 21, 2012

    Hi,
    I am a PHP developer. I couldn’t understand some of the comments above. But I want to say a few things which might help
    1.PHP code cannot be seen by the user as it executes on server.
    2.It is a very easy language and You are gonna love it once you reach a level.
    3.It is fully compatible with HTML and its IO is also pretty good.
    4.There is a huge open source community to back this language up so you don’t need to worry about your doubts.

    Leave a reply
  22. Melissa Eberhart
    August 5, 2012

    Wow-this was a really clear and helpful introduction to PHP. I didn’t fall asleep or get overwhelmed so that says a lot about the style of writing. I will continue to read through this site this week. Much thanks!

    Leave a reply
  23. Jason
    August 16, 2012

    got here because I’m having to retool my brain after being laid off. Website I built got hit a few times with what I found to be an SQL injection; I did trace it to the likely originating IP overseas, and am now exploring PHP… Personal Home Page… as maybe something worth learning for a variety of really good reasons… most of them $tarting with dollar $ign$ and a new job… and not having to give all the $$$ away learning all over again! Thank you so much for putting this page up! Off we go…

    Leave a reply
Leave a Comment Below »
Your Name
Your Email Address
Your Comment