summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-04-04 20:56:04 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-04-04 20:56:04 +0200
commit3ad8efe07deb3ec27a205815dc9097c20c728e9b (patch)
treed2d699b7173505ef6ce317cd0856fa5b03e6aae1 /user_guide/libraries
parent1ea127ae8a8026af7679526af06ff297d5104104 (diff)
added constants.php file and implemented constants for file system modes
Diffstat (limited to 'user_guide/libraries')
-rw-r--r--user_guide/libraries/ftp.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide/libraries/ftp.html b/user_guide/libraries/ftp.html
index 9e4af8b5d..0e577e9d0 100644
--- a/user_guide/libraries/ftp.html
+++ b/user_guide/libraries/ftp.html
@@ -258,7 +258,7 @@ Permissions can be set by passed an <kbd>octal</kbd> value in the second paramet
<code>
// Creates a folder named "bar"<br />
-$this->ftp->mkdir('/public_html/foo/bar/', 0777);
+$this->ftp->mkdir('/public_html/foo/bar/', DIR_WRITE_MODE);
</code>
@@ -268,7 +268,7 @@ $this->ftp->mkdir('/public_html/foo/bar/', 0777);
<code>
// Chmod "bar" to 777<br />
-$this->ftp->chmod('/public_html/foo/bar/', 0777);
+$this->ftp->chmod('/public_html/foo/bar/', DIR_WRITE_MODE);
</code>