From 66095fd370c94bb8b01c366a6e40b1ac3c86a99d Mon Sep 17 00:00:00 2001 From: Ross Masters Date: Thu, 9 Oct 2008 20:40:06 +0000 Subject: [PATCH] Added missing examples. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@267129 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/chown.xml | 51 +++++++++++++++++++++- reference/filesystem/functions/is-link.xml | 27 +++++++++++- reference/filesystem/functions/lstat.xml | 39 ++++++++++++++++- reference/filesystem/functions/symlink.xml | 22 +++++++++- reference/filesystem/functions/unlink.xml | 25 ++++++++++- 5 files changed, 159 insertions(+), 5 deletions(-) diff --git a/reference/filesystem/functions/chown.xml b/reference/filesystem/functions/chown.xml index f5e089fa8d..2518645ff9 100644 --- a/reference/filesystem/functions/chown.xml +++ b/reference/filesystem/functions/chown.xml @@ -1,5 +1,5 @@ - + chown @@ -51,6 +51,55 @@ + + &reftitle.examples; + + + Simple <function>chown</function> usage + + +]]> + + &example.outputs.similar; + + + string(13) "php.net" + ["passwd"]=> + string(1) "x" + ["uid"]=> + int(148864) + ["gid"]=> + int(148910) + ["gecos"]=> + string(13) "php.net" + ["dir"]=> + string(25) "/home/sites/php.net" + ["shell"]=> + string(13) "/sbin/nologin" +} +]]> + + + + + &reftitle.notes; ¬e.no-remote; diff --git a/reference/filesystem/functions/is-link.xml b/reference/filesystem/functions/is-link.xml index ead2af3046..380fb7300c 100644 --- a/reference/filesystem/functions/is-link.xml +++ b/reference/filesystem/functions/is-link.xml @@ -1,5 +1,5 @@ - + is_link @@ -41,6 +41,31 @@ + + &reftitle.examples; + + + Create and confirm if a file is a symbolic link + + +]]> + + + + + &reftitle.notes; ¬e.clearstatcache; diff --git a/reference/filesystem/functions/lstat.xml b/reference/filesystem/functions/lstat.xml index 4ef6758ce3..bac1d1079a 100644 --- a/reference/filesystem/functions/lstat.xml +++ b/reference/filesystem/functions/lstat.xml @@ -1,5 +1,5 @@ - + lstat @@ -46,6 +46,43 @@ + + &reftitle.examples; + + + Comparison of <function>stat</function> and <function>lstat</function> + + +]]> + + &example.outputs.similar; + + Information that differs between the two files. + + + 97236376 + [mode] => 33188 + [size] => 34 + [atime] => 1223580003 + [mtime] => 1223581848 + [ctime] => 1223581848 + [blocks] => 8 +) +]]> + + + + + &reftitle.notes; ¬e.clearstatcache; diff --git a/reference/filesystem/functions/symlink.xml b/reference/filesystem/functions/symlink.xml index 6bfb32c225..a575289580 100644 --- a/reference/filesystem/functions/symlink.xml +++ b/reference/filesystem/functions/symlink.xml @@ -1,5 +1,5 @@ - + symlink @@ -51,6 +51,26 @@ + + &reftitle.examples; + + + Create a symbolic link + + +]]> + + + + + &reftitle.notes; ¬e.no-windows; diff --git a/reference/filesystem/functions/unlink.xml b/reference/filesystem/functions/unlink.xml index 884a744aeb..1ea580c014 100644 --- a/reference/filesystem/functions/unlink.xml +++ b/reference/filesystem/functions/unlink.xml @@ -1,5 +1,5 @@ - + unlink @@ -75,6 +75,29 @@ + + &reftitle.examples; + + + Basic <function>unlink</function> usage + +Hello world!'); +fclose($fh); + +mkdir('testdir', 0777); + +unlink('test.html'); +unlink('testdir'); +?> +]]> + + + + + &reftitle.seealso;