: 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.