PHP getcwd

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

PHP : getcwd() function

Last update on January 25 2017 11:38:38 (UTC/GMT +8 hours)

Description

The getcwd() function is used to get the current working directory.

Version

(PHP 4 and above)

Syntax

getcwd()

Return value

The current working directory on success, or FALSE on failure.

Value Type : String

Example :

  1. echo getcwd();  

  2. ?>