PHP getcwd() Function

Definition and Usage

The getcwd() function returns the current directory.
This function returns the current directory on success and FALSE on failure.

Syntax

getcwd()


Example

<?php
echo getcwd();
?>

OUTPUT :
C:\testweb\main