User Tools

Site Tools


uphp:functions:chdir

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:chdir [2017/03/28 20:06]
jeff
uphp:functions:chdir [2021/09/13 05:57] (current)
Line 1: Line 1:
 ======chdir====== ======chdir======
 +
 <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
  
-Change uPHP'current directory+Change the current directory
  
 ====Description==== ====Description====
-<well size="sm"><html><span style="font-size:125%;color:green;">int + 
-<span style="color:black;"></html>[[chdir]] +<well size="sm"><html> 
-<html>+<span style="font-size:125%;color:green">int 
-<span style="color:green;">string +<span style="color:black">chdir ( 
-<span style="color:blue;">$directory +<span style="color:green">string 
-<span style="color:black;">)+<span style="color:blue">$directory 
 +<span style="color:black">)
 </html></well> </html></well>
  
 ====Parameter==== ====Parameter====
-<html><span style="color:blue;"><b>$directory</b><span style="color:black;"></html>:  The new current directory 
  
-====Return Value==== +<html><b><span style="color:blue">$directory<span style="color:black"></b></html>:  The new current directory 
-Returns 0 on success and -1 on failure+ 
 +====Return Values==== 
 + 
 +<html><b><span style="color:green">Integer<span style="color:black"></b></html>:  0 on success or -1 on failure
  
 ====Example==== ====Example====
-**Change directory to /logs:**+ 
 +===Change directory to /logs===
  
 <code php> <code php>
Line 29: Line 34:
  
 ====See Also==== ====See Also====
-[[getcwd()]] - Return the current directory 
  
-[[mkdir()]] - Create a directory as specified by pathname+[[getcwd()]] - Get the current directory 
 + 
 +[[mkdir()]] - Make a directory
  
-[[rmdir()]] - Remove a directory+[[rmdir()]] - Remove a directory, with optional deletion of contents
  
uphp/functions/chdir.1490731561.txt.gz · Last modified: 2021/09/13 05:56 (external edit)