"; echo dirname(__FILE__); ?>"> gone not around any longer PHP gets the directory where the current file is located getcwd function-PHP Tutorial-php.cn

gone not around any longer PHP gets the directory where the current file is located getcwd function

WBOY
Release: 2016-07-29 08:39:48
Original
1150 people have browsed it

Use getcwd() function or dirname(__FILE__)

Copy the codeThe code is as follows:


echo getcwd() . "
";
echo dirname(__FILE__);
?>

The above introduces the gone not around any longer PHP getcwd function to get the directory where the current file is located, including the gone not around any longer aspect. I hope it will be helpful to friends who are interested in PHP tutorials.

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!