Common PHP programming skills-general Linux technology-Linux programming and kernel information. The following is a detailed description.
1. Configure the PHP file directory
As the script language for server interpretation and execution, the PHP program is placed in a directory accessible to a server. Generally, Apache httpd can be modified. conj configuration, for example, the following sentence in this file:
Alias/test/"d: brhpwebsitebrhp/", enter "http: // localhost/test/+ PHP file name" in the browser to access d: the PHP file under brhpwebsitebrhp/. It can be seen that this row is just an alias for the directory where the PHP file is stored.
You can also specify the DocumentRoot path to get the directory where the server files are stored. conj finds the following two lines. The path can be specified at will, and your php file can be stored in this directory. The server can also run them, such as "http: // localhost/+ PHP file name ".
Generally, it is better to place the PHP file in the same place for convenient management, while other files are placed in another place.
| CODE: DocumentRoot "C:/usr/bin/html /" |