Php file path and operations

Source: Internet
Author: User
: This article mainly introduces the PHP file path and operations. For more information about PHP tutorials, see. Relative path

The path relative to the directory where the current file is located

Current Directory :.

Directory at the upper level :..

Path separator :/

Absolute path

Score of the root directory of documents stored on the website relative to the root directory of the operating system
If the path is executed on the server (using php file processing function execution), "root" refers to the root of the operating system
If the program is a downloaded client and only accesses files on the server through Apache, "root" means the root directory of the document.

Functions related to file operations

Create file touch ("file name ")
Delete the file unlink ("file path ");

Cut/rename the file rename ("original path", "new path ")

Copy a file ("current", "target ");

The above describes the PHP file path and operations, including the content, hope to be helpful to friends interested in PHP tutorials.

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.