Table of Contents

chdir

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Change the current directory

Description

int chdir ( string $directory )

Parameter

$directory: The new current directory

Return Values

Integer: 0 on success or -1 on failure

Example

Change directory to /logs

<?
  chdir("/logs/");
?>

See Also

getcwd() - Get the current directory

mkdir() - Make a directory

rmdir() - Remove a directory, with optional deletion of contents