php is called hypertext preprocessor as its libraries are already compiled. when any person request for any php page in the address bar of the browser that request is first sent to the server then server interpret php files and return back response in form of Html.so it is called hypertext preprocessor.
PHP is an HTML-embedded Web scripting language. This means PHP code can be inserted into the HTML of a Web page. When a PHP page is accessed, the PHP code is read or "parsed" by the server the page resides on. The output from the PHP functions on the page are typically returned as HTML code, which can be read by the browser. Because the PHP code is transformed into HTML before the page is loaded, users cannot view the PHP code on a page. This make PHP pages secure enough to access databases and other secure information.
History of PHP :-
What is php file.
Why PHP?
Scripting :-
Scripting languages, which can be embedded within HTML, commonly are used to add functionality to a Web page, such as different menu styles or graphic displays or to serve dynamic advertisements. These types of languages are client-side scripting languages, affecting the data that the end user sees in a browser window. Other scripting languages are server-side scripting languages that manipulate the data, usually in a database, on the server.
Scripting languages came about largely because of the development of the Internet as a communications tool. JavaScript, ASP, JSP, PHP, Perl, Tcl and Python are examples of scripting languages.
How Does PHP work?
Here the server simply sends an html files to the client. But if you instead type website url then request an php page. The server is put to work. The server first reads the php file carefully to see if there are any tasks that need to be executed only when the server has done what it is supposed to do. The result is send to the client. The client only see the result of the server's work not the actual instruction. This means if you click view source on a php page you don't see the php code.
PHP Syntax :-
File Name : index.php
Note :-
Example
File Name :
Output :-
WAMP (windows, apache, mysql, php) is all in one packages which install the basic programs, you will need to get a localhost running and to be able to build and run php scripts.
Trending Tutorials