PHP3 Chinese document (for conversion)

Source: Internet
Author: User
Tags html form http authentication php script
Chapter 3 PHP3
What is PHP3?
PHP3.0 is a server-side HTML-embedded script description language.
What can PHP3 do?
Perhaps the strongest and most important feature of PHP3 is its database integration layer. Using it to complete a web page containing database functions is incredibly simple. Currently, the following databases are supported.
Oracle
Adabas D
Sybase
FilePro
MSQL
Velocis
MySQL
Informix
Solid
DBase
ODBC
Unix dbm
PostgreSQL

Brief History of PHP
PHP was born in the fall of 1994. His founder is Rasmus Lerdorf. In the early days, he used to track who visited his online resume on his webpage. The first version used by others was released in 1995, called Personal Home Page Tools. It contains a very simple syntax analysis engine and can only understand some specified macros and common functions of the Home Page background, such as message book, counters and other materials. In the middle of 1995, the syntax analysis engine was rewritten and named PHP/FI 2.0. FI comes from another package written by Rasmus that can accept Html form data. He combined the Personal Home Page Tools script and Form Interpreter, and added mSQL support, so PHP/FI 2.0 was born. PHP/FI is growing at an astonishing rate, and others are beginning to improve and modify their source code.
It is difficult to provide any accurate statistics, but it is estimated that at least 1996 WEB sites are using PHP/FI 15,000 by the end of 2.0. By 1997, this number has grown to 50,000, the development of PHP has also changed in 1997. He has changed from Rasmus's pet project to a more organized group project. The syntax analysis engine is also rewritten by Zeev Suraski and Andi Gutmans, which forms the foundation of PHP3. Most of the common code in PHP/FI has been rewritten and introduced into PHP3.
Today (in mid 1998), many commercial products such as C2's StrongHold web server and Red Hat Linux started to support PHP3 or PHP/FI, according to the conservative inference provided by NetCraft, about 150,000 WEB sites around the world are currently using PHP or PHP/FI. Previously, on the InterNet, these sites were far more than those running Netscape's flagship Enterprise server.
Use PHP3 for HTTP authentication
The HTTP authentication function can be used only when PHP runs in Apache module mode. In the Apache module PHP script, you can use the Header () function to send a "Authentication Required" message to the client's disconnected browser, so that a user name/password (username/password) pops up in the browser) in the input window, after the user enters the user name and password, the URL containing the PHP script will be called again, using $ PHP_AUTH_USER, $ PHP_AUTH_PW, which represents the user name, password, and confirmation method respectively, $ PHP_AUTH_TYPE variable. Currently, only the "BASIC" validation method is supported.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.