User Tools

Site Tools


uphp:functions:mkdir

Differences

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

Link to this comparison view

Next revision
Previous revision
uphp:functions:mkdir [2017/05/09 12:11]
jeff created
uphp:functions:mkdir [2021/09/13 05:57] (current)
Line 21: Line 21:
 <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()]]. <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====+====Return Values====
  
 <html><b><span style="color:green">Integer<span style="color:black"></b></html>:  0=success, otherwise error code <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==== ====See Also====
  
-[[chdir()]] - Change current directory+[[chdir()]] - Change the current directory
  
 [[getcwd()]] - Get the current directory [[getcwd()]] - Get the current directory
  
-[[rmdir()]] - Remove a directory+[[rmdir()]] - Remove a directory, with optional deletion of contents
  
uphp/functions/mkdir.1494331907.txt.gz · Last modified: 2021/09/13 05:56 (external edit)