Path and operation of PHP files

Source: Internet
Author: User
Tags file copy
Relative path

Path relative to the directory where the current file resides

Current directory:.

Top level directory:.

Path delimiter:/

Absolute path

The root of the operating system or the location of the site's document roots Score
If the path is executed in the server (through a PHP file handler), then "root" refers to the root of the operating system
If the program is a downloaded client, and then access the files on the server, only through Apache access, "root" also refers to the document root directory

Functions related to file operations

Create a file Touch ("file name")
Delete File unlink ("File path");

Cut/Rename File rename ("Original path", "New Path")

Copy the file copy ("Current", "target");

The above describes the PHP file path and operation, including the aspects of the content, I hope the PHP tutorial interested in a friend helpful.

  • Related Article

    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.