web1.0 era: All the code is a static script executed on the browser side, the user request is also the server on the pre-existing static Web page, the user and the server can not do any interaction! (No database support required)
web2.0 era: interaction between the user and the server (dialogue),PHP scripts need to interact with the database, to handle the complex business logic of the user, the future of the Web page will increasingly "software"
web3.0 era: the era of Internet of things, cloud computing and big data
The history of PHP
The original meaning of PHP: Personal Home Page profile
Initially a buddy from Canada, an online scripting tool was developed to keep track of how many people had visited his online resume and was popular, so he started developing his own toolset!
P What HP means now: Hypetext perprocessor Hypertext preprocessing language
explains the PHP is a pre-executed language on the server (working on the server side) and then sending the results of the execution to the browser
functions and features of PHP
- PHP is primarily used for Web development, but php may also develop desktop software (applications), but not often
- PHP is open source free software, able to run stably on all operating platforms
- PHP is simple to get started, syntax similar to C (php itself is written in C), while supporting process-oriented and object-oriented programming
- PHP is relatively "young", is still in continuous improvement and development, compared with "vitality"
- PHP works on the corresponding platform interpreter, which consumes relatively little system resources.
- PHP supports a variety of mainstream databases, such as Mssql,Mysql,sql Server, Oracle , and so on, is just a "gold partner" with Mysql.
The evolution of Web services
Peer network mode
No dedicated client, no dedicated server!
Advantages: Simple and fast
Cons: Unable to provide reliable service
c/S mode
Client/server, which is the client / server-side mode, separates the client (specifically "enjoy" the service) and the server (specifically "provides" the service)!
The master / slave server, which is also called the mirror server from the server!
Features: the client and server side each install different software, different services have different client software
Advantages: provide reliable Web services
b/S mode
Browser/server, that is, browser / server mode, developed by C/S mode, can also say b/S Mode is actually a special c/S mode, equivalent to the C/S mode of all the client has become a browser only!
For example: Page Tour (web game)
the core of web development is b/s mode!
Our main task today is to build a Web server environment, but the browser side (B) do not need us to build, we only need to build server Software on the line!
Two questions:
What is an integrated environment?
The integrated environment is to build aWeball the components required by the server (Apache,MySQL,PHPetc) Man-made combination together! The common integration environments are:Wamp(Windows,Apache,MySQL,PHP),Lamp,Xamp,Phpstudywait
Why don't we recommend an integrated environment?
- We don't know why Apache,mysql,php , etc. are grouped together and how to group together (important for professionals)
- in real-world development, it's not necessary to use Apache(for example , IIS), or to use mysql, so We must understand the principles!
- The integrated environment belongs to third-party software and is not necessarily secure!
The history, functions and features of PHP