PHP gets the directory where the current file is located getcwd() function

高洛峰
Release: 2023-03-04 16:24:01
Original
1228 people have browsed it

Use the getcwd() function or dirname(__FILE__)

"; echo dirname(__FILE__); ?>
Copy after login

For more PHP articles about getting the directory where the current file is located, please pay attention to the PHP Chinese website for articles related to the getcwd() function!

Related labels:
source:php.cn
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 Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!