Home > Backend Development > PHP Tutorial > DIRECTORY_SEPARATOR can actually be used /well, windows also supports it

DIRECTORY_SEPARATOR can actually be used /well, windows also supports it

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-29 08:50:58
Original
1223 people have browsed it

Path separator, on Linux it is ‘/’ and on Windows it is ‘‘, I use /

Reply content:

Path separator, on Linux it is ‘/’ and on Windows it is ‘‘, I use /

DIRECTORY_SEPARATOR is a predefined constant for path separator.
Determine its value based on the system your server is deployed on, or the system your PHP file is run on.
If it is a Linux system, its value is /. If it is a Windows system, its value is .
The function of this constant is to ensure that in any system, the path you write can be accessed normally by that system.

Related labels:
php
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template