chdir

(FW >= 1.0)

chdir - Change directory

Description

int chdir( string $directory )
Changes uPHP's current directory to directory.

Parameters

directory

The new current directory

Return Value

Returns 0 on success and -1 on failure.

Examples

<? 
// change directory to /logs
chdir("/logs/");
?>