This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:chdir [2017/04/10 13:18] jeff |
uphp:functions:chdir [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
< | < | ||
- | Change current directory | + | Change |
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | < | + | |
<span style=" | <span style=" | ||
- | <span style=" | + | <span style=" |
- | </ | + | |
- | [[chdir]] ( | + | |
- | < | + | |
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
- | </ | + | </ |
- | </ | + | |
====Parameter==== | ====Parameter==== | ||
Line 24: | Line 19: | ||
< | < | ||
- | ====Return | + | ====Return |
< | < | ||
Line 30: | Line 25: | ||
====Example==== | ====Example==== | ||
- | **Change directory to /logs:** | + | ===Change directory to /logs=== |
<code php> | <code php> | ||
Line 42: | Line 37: | ||
[[getcwd()]] - Get the current directory | [[getcwd()]] - Get the current directory | ||
- | [[mkdir()]] - Create | + | [[mkdir()]] - Make a directory |
- | [[rmdir()]] - Remove a directory | + | [[rmdir()]] - Remove a directory, with optional deletion of contents |