User Tools

Site Tools


uphp:functions:mkdir

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

uphp:functions:mkdir [2017/05/09 13:46]
jeff
uphp:functions:mkdir [2021/09/13 05:57]
Line 1: Line 1:
-======mkdir====== 
- 
-<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> 
- 
-Make a directory 
- 
-====Description==== 
- 
-<well size="sm"><html> 
-<span style="font-size:125%;color:green">int 
-<span style="color:black">mkdir ( 
-<span style="color:green">string 
-<span style="color:blue">$pathname 
-<span style="color:black">) 
-</html></well> 
- 
-This function attempts to create a new directory as specified by the <html><b><span style="color:blue">pathname<span style="color:black"></b></html> 
- 
-====Parameter==== 
- 
-<html><b><span style="color:blue">$pathname<span style="color:black"></b></html>:  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 Value==== 
- 
-<html><b><span style="color:green">Integer<span style="color:black"></b></html>:  0=success, otherwise error code 
- 
-====Example==== 
-<code php> 
-<? 
-  if (mkdir('/path/to/dir')) die('Failed to create folders...'); 
-?> 
-</code> 
- 
-====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)