PHP is here in 2014 the most popular and used scripting language on the Internet. It got a large number of uses such as being able to create login forms,varify form details, running forms, image galleries, reading or writting data to your database and many other things. Often it’s used to give additional functionallity to a webpage or updating server side data. A good way to spot if a website is running a php script i to look at the URL. If it ends with .php such as www.mydomain.com/test-script.php then it’s very likely a php script you are running ofte embedded in an HTML page.
PHP is what you call a server-sided language. This means that all the code runs on the server and nothing are installed on your own computer (like with .exe files). It processes the data on the page and then display the results to you in your browser.
There is a bit of confusion about what PHP stands for, so far the most popular explanation would be that PHP stands for “Hypertext Pre-processor”. But if that was the case, why not just call it HPP? An alternative explanation to this would be that is is the initials from the earliest version of the program way back in the 80’s, when it was simply called Personal Home Page Tools. That would make a little more sense as why it’s called PHP.
PHP was created early in 1994 by programmer Rasmus Lerdorf. During 1997, PHP development was being enhanced and improved by other contributors too which help it grow to the huge system it is today. Two of them, Zeev Suraski and Andi Gutmans, rewrote the parser from scratch to create PHP version 3 which all the later versions are based on. The latest version today is PHP 6.
A simple PHP print example could look something like this:
<html> <head> <title>Simple PHP Example</title> </head> <body> <font color="black">The following text is made by PHP:</font> <p> <?php print ("This is PHP text!"); ?> </p> </body> </html>