User Tools

Site Tools


uphp:functions:chdir

Differences

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

Link to this comparison view

uphp:functions:chdir [2017/03/31 12:46]
jeff
uphp:functions:chdir [2021/09/13 05:57]
Line 1: Line 1:
-======chdir====== 
-<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> 
- 
-Change uPHP's current directory 
- 
-====Description==== 
-<well size="sm"><html><span style="font-size:125%;color:green">int 
-<span style="color:black"></html>[[chdir]] 
-<html>( 
-<span style="color:green">string 
-<span style="color:blue">$directory 
-<span style="color:black">) 
-</html></well> 
- 
-====Parameter==== 
-<html><span style="color:blue"><b>$directory</b><span style="color:black"></html>:  The new current directory 
- 
-====Return Value==== 
-Returns 0 on success and -1 on failure 
- 
-====Example==== 
-**Change directory to /logs:** 
- 
-<code php> 
-<? 
-  chdir("/logs/"); 
-?> 
-</code> 
- 
-====See Also==== 
-[[getcwd()]] - Return the current directory 
- 
-[[mkdir()]] - Create a directory as specified by pathname 
- 
-[[rmdir()]] - Remove a directory 
  
uphp/functions/chdir.txt · Last modified: 2021/09/13 05:57 (external edit)