Get the current working directory:
<?php
echo getcwd();
?>
Result:
/home/php
The getcwd() function returns the current working directory.
getcwd()
Return Value: | The current working directory on success, FALSE on failure. |
---|---|
PHP Version: | 4.0+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!