PHP is the acronym for Hypertext Preprocessor. As the name suggests, there are some preprocessing of hypertext occurs means using this language, we can print the hypertext (HTML) into the user's screen by processing it accordingly.
In Facebook, you can see your messages but not others. Similarly, others can see their messages but not yours. Actually, when you put your credentials into the login form. It sends a request to Facebook data centers, which processes your request to check whether your credentials are correct or not, and only then it responds with only your messages, not others. You can see there is a pre-processing occurs before showing you the messages. This is PHP.
Hoping, now you are all clear about the concept on which the PHP works. Now we will briefly go through the following:
- What is PHP exactly?
- Brief History of PHP.
- Why should you use it?
- How can you learn it?
What is PHP exactly
PHP is a server-side scripting language. As PHP is a server-side language, implying its scripts (codes) always present on the server and can never be seen by the user. The user can only see the output processed by PHP code present on the server. This functionality makes PHP extremely secure and dynamic. The PHP code is usually processed by an interpreter present on the server. The web server uses this interpreter to process or interpret the code, combines the result and give it back to user's console or browser etc.
Brief History of PHP
PHP was originally developed by Rasmus Lerdorf in 1994. Actually, Rasmus Lerdorf previously was a C programmer and he wrote various CGI programs in C, which he used to maintain his personal homepage. Afterward, he extended his maintenance, to forms and databases, and called this implementation of C as "Personal Homepage/Forms Interpreter". Yes, PHP was previously known as "Personal Homepage". With the course of time, various improvements are made in this field and PHP becomes more professional than personal.
Why should you use it?
As per the record of January 2013, there are 244 Million websites running with PHP. Major companies like Facebook (with some transformations), BitTorrent, Udemy, Nokia uses PHP in their web portals, which clearly shows the versatility and popularity of PHP. As we said earlier, that the PHP scripts are always present on the server and cannot be seen by the user at any cost, which provides it more secure dynamic structure. Major CMS platforms like WordPress etc. accepts PHP integration.
With all this PHP implements a lot of micro-frameworks like Slim etc. which can make PHP programming really fast and efficient.
How can you learn it?
Although, PHP have its official website as php.net with authentic documentations, but these documentations are not pretty good and elaborative. There are so many good books and tutorials series running all over the web. Some the best books are
- PHP & MySQL: The Missing Manual, Second Edition by Brett McLaughlin (For Absolute Beginners)
- PHP for the World Wide Web By Larry Ullman (For Intermediates)
- Expert PHP and MySQL, By Andrew Curioso, Ronald Bradford, Patrick Galbraith (For Absolute Experts)
Moreover, we here at myPHPnotes provides various articles for PHP programming which can sharpen your blade with great extent. For more illustrations, you may go through the tutorials on YouTube particularly, on my channel "AdnanHussainTurki" and other channels like "CodeCourse" and "DevMarketer".
We support knowledge should be free.
Thank you for reading, please share if you think it was helpful.