PHP science, China Science Expo
1. What does PHP mean?
Hypertext Preprocessor)
2. What is PHP used?
PHP is a common open source scripting language. The syntax incorporates the features of C language, Java and Perl (actual extraction and Reporting Language), which is conducive to learning and widely used and mainly applicable to the Web development field. Compared with other programming languages, PHP embeds programs into HTML (an application under the standard General Markup Language) documents for execution, the execution efficiency is much higher than the CGI (Universal Gateway Interface) that completely generates HTML tags. PHP can also execute compiled code to compile and optimize code execution, so that the code runs faster.
3. Why does PHP use Mysql?
When your website grows, you may encounter the following problems:
① A website contains too many things that prevent visitors from getting what they want quickly. This problem is fatal to a website to some extent;
② Visitors want to provide you with information, which must be saved for future use.
The above two problems can be solved through the database!
Why PHP and Mysql are used? Almost all major commercial website databases are SQL-based. Among them, Oracle is the most popular. It is very powerful, of course, expensive. SQL is not an application, but a Language. It is short for Structured Query Language (Structured Query Language), used to operate and Query databases.
In recent years, some companies have developed "open code" SQL applications, the most famous of which may be MySQL. It is not just free, but it is not inferior to Oracle for Small and Medium-sized database applications.
To run MySQL on a website, you need a script language to interact with the database, so PHP uses Mysql.
4. Advantages of PHP + Mysql
- Mature technology and rapid development
PHP + MySQL is currently the most mature, stable, and secure enterprise-level WEB development technology. It is widely used in very large websites (for example, if the sendong frontend uses PHP, enter www.sendong.com/index.php ). Its mature architecture, stable performance, embedded development methods, and concise syntax allow rapid system development.
- Efficient execution, secure and reliable
PHP performs well in security. The account and password are encrypted to ensure the security of the data account. Key data uses multi-layer encryption technology to effectively ensure data security. PHP + MySQL can run across UNIX, Linux, Windows NT, and other platforms, reducing the risk of system and data migration.