Easy Tutorial
❮ Func Curl_Setopt Func String Join ❯

PHP chdir() Function

PHP Directory Reference Manual

Example

Change the current directory:

Result:


Definition and Usage

The chdir() function changes the current directory.


Syntax

Parameter Description
directory Required. Specifies the new current directory.

Technical Details

Return Value: Returns TRUE on success. Returns FALSE on failure and throws an E_WARNING level error.
PHP Version: 4.0+
--- ---

❮ Func Curl_Setopt Func String Join ❯