Four Common PHP programming skills

Source: Internet
Author: User
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 /"

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.