User Tools

Site Tools


uphp:functions:mkdir

mkdir

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

Make a directory

Description

int mkdir ( string $pathname )

This function attempts to create a new directory as specified by the pathname

Parameter

$pathname: The directory path. Using a / at the beginning will make it relative to the root, otherwise it will be relative to the current working directory, which is either the folder that the script was started in or as was set by chdir().

Return Values

Integer: 0=success, otherwise error code

Example

<?
  if (mkdir('/path/to/dir')) die('Failed to create folders...');
?>

See Also

chdir() - Change the current directory

getcwd() - Get the current directory

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

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