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 uPHP's current directory

Description

int chdir ( string $directory )

Parameter

$directory: The new current directory

Return Value

Returns 0 on success and -1 on failure

Example

Change directory to /logs:

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

See Also

getcwd() - Return the current directory

mkdir() - Create a directory as specified by pathname

rmdir() - Remove a directory

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