User Tools

Site Tools


uphp:functions:chdir

This is an old revision of the document!


chdir

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

Change current directory

Description

int chdir ( string $directory )

Parameter

$directory: The new current directory

Return Value

Integer: 0 on success or -1 on failure

Example

Change directory to /logs

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

See Also

getcwd() - Get the current directory

mkdir() - Create a directory as specified by pathname

rmdir() - Remove a directory

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