php is a compiled language. Simply put, it parses some variables in the page composed of our html, so that we can see the correct content on the client browser instead of the php code.
1. The relationship between php and html (Recommended learning: PHP video tutorial)
## The function of #php is to parse pages containing php code, so as to achieve dynamic addition and management of pages, such as our forums and blogs. PHP manages HTML pages.2.php and database
php manages html, so where do we need to modify and add the content, so there is a database, and php connects to the database To add, modify, delete, and query data.3 The specific application of .php
We need to create a php file, that is, a file with a .php suffix and add code in it. (The specific codes will not be listed. If you are in the mood, you can read the manual-php manual).4. The application of php at work
In order to better use the php programming language, we encapsulate the code for better use and reduce the code complexity Redundancy has gradually become the framework used in enterprises today (tp framework/ci framework/YII framework, etc.) php files need to be accessed through services (Apache, etc.), otherwise they will not be opened , or not parsed.The above is the detailed content of The role of php in the front-end. For more information, please follow other related articles on the PHP Chinese website!