PHP is a server side scripting language. It is used to create Static websites or Dynamic websites or Web pages. PHP understands for Hypertext Pre-processor, that under stood by Personal Home Pages.
PHP scripts can only be interpreted on a server that can PHP installed.
The client computers accessing the PHP scripts need a web browser only.
A PHP file contains ends with the extension .php or PHP tag.
PHP used for Hypertext Preprocessor.
PHP was stuructured for web development, initially to fill the gap between Server Side Including (SSI) and Perl. The language’s started were laid in 1994 through the work of Rasmus Lerdorf who scripted a versions of Common Gateway Interface (CGI) binaries in C to access his homepage. Generally, he improved these to include the capable to interact with databases and web forms and named it PHP/FI meaning “Personal Home Page/Forms Interpreter”. The start version of PHP/FI was released in 1995 with syntax, variables and form handling resembling Perl language. The second version PHP/FI 2 was released in 1997.
The team enlarged in 1997 to include Zeev Suraski and Andi Gutmans who re-scripted the parser to form the base of PHP3 and renamed it PHP: Hypertext Preprocessor. The redoing work continued next and in 1999, it leads to the development of Zend Engine which can discussed as an interpreter for PHP language.
Over the years, the updating of the language has continued and the latest version PHP 5.6.4 was released in December 2014
You have generally head of a lot of programming languages out there; you may be confusing why we should prefer use PHP as our harmful for the web programming. Below are some of the compelling reasons.
File extension and Tags In order for the server to identify our PHP files and scripts, we must save the file with the “.php” extension. Older PHP file extensions include
PHP was designed to work with HTML, and as such, it can be embedded into the HTML code.
You can create PHP files without need html tags and that is called best PHP file .
The server creates the PHP code and outputs the process as HTML code to the web browsers.
In order for the server to distinguish the PHP code from the HTML code, we sure always ending the PHP code in PHP tags.
A PHP tag starts with the less than symbol proceed by the question mark and then the words “php”.
The PHP tags basically are not case-sensitive, but it is strongly suggested that we use lower case letter.
<?php … ?>
We will be referring to the PHP lines of code as statements. PHP statements ending with semi colon (;). If you only have one statement, you can omit the semi colon. If you have increase than one line, then you must end each line with a semi colon. For the sake of consistency, it is recommended that you always end your statement(s) with a semi colon. PHP scripts are executed on the server. The output is returned in form of HTML.
PHP is widely used in web development nowadays. PHP can develop dynamic websites easily. PHP programming language is basically used for creating web-based software applications. In 2013,PHP found application in over 244 million websites in world.