How to use Directory getcwd in PHP

In this article I am going to explain about getcwd function in PHP.
  • 1636

PHP getcwd() function

The directory getcwd function returns the current working directory.

Syntax of getcwd function

getcwd()

Example of directory getcwd function

<html>

<body>   

<?php

echo getcwd();

?>

</body>

</html>

 

Output:

getcwd function.jpg

You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.