User Tools

Site Tools


uphp:functions:chdir

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

uphp/functions/chdir.txt · Last modified: 2021/09/13 05:57 (external edit)