Home > Backend Development > PHP Tutorial > PHP file path and operation

PHP file path and operation

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-29 08:56:40
Original
1237 people have browsed it

Relative path

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

Current directory: .

Previous directory: ..

Path separator: /

Absolute path

Relative to the root of the operating system or the document root directory where the website is stored
If the path is executed in the server (executed through the PHP file processing function), the "root" refers to the root of the operating system
If the program It is a downloaded client. When accessing files in the server, it can only be accessed through Apache. "Root" also refers to the document root directory

Functions related to file operations

Create file touch("File name")
delete file unlink("file path");

cut/rename file rename("original path", "new path")

copy file copy("current", " Target");

The above introduces the path and operation of PHP files, including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template