From f72f51e389ee4d4a59a7e6de92aac7d6dd297e6c Mon Sep 17 00:00:00 2001 From: Damien Seguy Date: Tue, 18 May 2004 14:23:19 +0000 Subject: [PATCH] fixing a point in stat, adding some tags, and comestics git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@158848 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/basename.xml | 4 ++-- reference/filesystem/functions/chmod.xml | 4 ++-- reference/filesystem/functions/delete.xml | 4 ++-- reference/filesystem/functions/file-get-contents.xml | 4 ++-- reference/filesystem/functions/file-put-contents.xml | 4 ++-- reference/filesystem/functions/fscanf.xml | 8 ++++---- reference/filesystem/functions/is-executable.xml | 6 +++--- reference/filesystem/functions/is-uploaded-file.xml | 7 +++++-- reference/filesystem/functions/linkinfo.xml | 11 ++++++----- reference/filesystem/functions/mkdir.xml | 7 ++++--- reference/filesystem/functions/pathinfo.xml | 6 +++--- reference/filesystem/functions/realpath.xml | 4 ++-- reference/filesystem/functions/stat.xml | 4 ++-- 13 files changed, 39 insertions(+), 34 deletions(-) diff --git a/reference/filesystem/functions/basename.xml b/reference/filesystem/functions/basename.xml index abedf2bcb2..fed4d3e95e 100644 --- a/reference/filesystem/functions/basename.xml +++ b/reference/filesystem/functions/basename.xml @@ -1,5 +1,5 @@ - + @@ -45,7 +45,7 @@ $file = basename($path, ".php"); // $file is set to "index" - See also: dirname + See also dirname. diff --git a/reference/filesystem/functions/chmod.xml b/reference/filesystem/functions/chmod.xml index 3b81c4cb2e..dbb1c29ae0 100644 --- a/reference/filesystem/functions/chmod.xml +++ b/reference/filesystem/functions/chmod.xml @@ -1,5 +1,5 @@ - + @@ -82,7 +82,7 @@ chmod("/somedir/somefile", 0750); ¬e.no-remote; - When safe mode is enabled, PHP + When &safemode; is enabled, PHP checks whether the files or directories you are about to operate on have the same UID (owner) as the script that is being executed. In addition, you cannot set the SUID, SGID and sticky bits diff --git a/reference/filesystem/functions/delete.xml b/reference/filesystem/functions/delete.xml index 8eac96ed54..c851b7ff96 100644 --- a/reference/filesystem/functions/delete.xml +++ b/reference/filesystem/functions/delete.xml @@ -1,5 +1,5 @@ - + @@ -18,7 +18,7 @@ unset in the wrong place. - See also: unlink to delete files, + See also unlink to delete files, unset to delete variables. diff --git a/reference/filesystem/functions/file-get-contents.xml b/reference/filesystem/functions/file-get-contents.xml index c97bc4d6c1..c65bed05c2 100644 --- a/reference/filesystem/functions/file-get-contents.xml +++ b/reference/filesystem/functions/file-get-contents.xml @@ -1,5 +1,5 @@ - + @@ -29,7 +29,7 @@ ¬e.context-support; &warn.ssl-non-standard; - See also: fgets, file, + See also fgets, file, fread, include, and readfile. diff --git a/reference/filesystem/functions/file-put-contents.xml b/reference/filesystem/functions/file-put-contents.xml index 750c1e6e2b..4003c3fd8f 100644 --- a/reference/filesystem/functions/file-put-contents.xml +++ b/reference/filesystem/functions/file-put-contents.xml @@ -1,5 +1,5 @@ - + file_put_contents @@ -27,7 +27,7 @@ ¬e.bin-safe; &tip.fopen-wrapper; - See also: + See also fopen, fwrite, fclose, and diff --git a/reference/filesystem/functions/fscanf.xml b/reference/filesystem/functions/fscanf.xml index b7a4e5c529..b60772f403 100644 --- a/reference/filesystem/functions/fscanf.xml +++ b/reference/filesystem/functions/fscanf.xml @@ -1,5 +1,5 @@ - + @@ -47,15 +47,15 @@ fclose($handle); - users.txt - + Contenu du fichier users.txt + - + diff --git a/reference/filesystem/functions/is-executable.xml b/reference/filesystem/functions/is-executable.xml index 530a4416e1..8d1a8e46de 100644 --- a/reference/filesystem/functions/is-executable.xml +++ b/reference/filesystem/functions/is-executable.xml @@ -1,5 +1,5 @@ - + @@ -16,8 +16,8 @@ Returns &true; if the filename exists and is executable. - is_executable became available with Windows in PHP - version 5.0.0. + is_executable became available with + Windows in PHP version 5.0.0. diff --git a/reference/filesystem/functions/is-uploaded-file.xml b/reference/filesystem/functions/is-uploaded-file.xml index e545729658..4f0c2ce53f 100644 --- a/reference/filesystem/functions/is-uploaded-file.xml +++ b/reference/filesystem/functions/is-uploaded-file.xml @@ -1,5 +1,5 @@ - + @@ -37,6 +37,9 @@ functionality of PHP which changed after that version. + + + <function>is_uploaded_file</function> example ]]> - + See also move_uploaded_file, and the section Handling file uploads diff --git a/reference/filesystem/functions/linkinfo.xml b/reference/filesystem/functions/linkinfo.xml index 018eae83b3..963cb9c200 100644 --- a/reference/filesystem/functions/linkinfo.xml +++ b/reference/filesystem/functions/linkinfo.xml @@ -1,5 +1,5 @@ - + @@ -13,11 +13,12 @@ stringpath - linkinfo returns the st_dev field of the - Unix C stat structure returned by the lstat system call. This - function is used to verify if a link (pointed to by + linkinfo returns the st_dev + field of the Unix C stat structure returned by the lstat + system call. This function is used to verify if a link (pointed to by path) really exists (using the same method - as the S_ISLNK macro defined in stat.h). Returns 0 or &false; in + as the S_ISLNK macro defined in stat.h). + Returns 0 or &false; in case of error. diff --git a/reference/filesystem/functions/mkdir.xml b/reference/filesystem/functions/mkdir.xml index 9cbe924ecc..3517437e22 100644 --- a/reference/filesystem/functions/mkdir.xml +++ b/reference/filesystem/functions/mkdir.xml @@ -1,5 +1,5 @@ - + @@ -35,7 +35,8 @@ The mode is 0777 by default, which means the widest possible access. For more information on modes, read the details on the chmod page. - + + <function>mkdir</function> example ]]> - + &return.success; diff --git a/reference/filesystem/functions/pathinfo.xml b/reference/filesystem/functions/pathinfo.xml index fe0c913f40..9dda6d0ee2 100644 --- a/reference/filesystem/functions/pathinfo.xml +++ b/reference/filesystem/functions/pathinfo.xml @@ -1,5 +1,5 @@ - + @@ -16,8 +16,8 @@ pathinfo returns an associative array containing information about path. The following array elements are returned: - dirname, basename - and extension. + dirname, basename + and extension. diff --git a/reference/filesystem/functions/realpath.xml b/reference/filesystem/functions/realpath.xml index b7cdf34a58..5102443984 100644 --- a/reference/filesystem/functions/realpath.xml +++ b/reference/filesystem/functions/realpath.xml @@ -1,5 +1,5 @@ - + @@ -36,7 +36,7 @@ $real_path = realpath("../../index.php"); - See also: basename, + See also basename, dirname, and pathinfo. diff --git a/reference/filesystem/functions/stat.xml b/reference/filesystem/functions/stat.xml index 962976052e..a77626addf 100644 --- a/reference/filesystem/functions/stat.xml +++ b/reference/filesystem/functions/stat.xml @@ -1,5 +1,5 @@ - + @@ -97,7 +97,7 @@ 10 ctime - time of last change (Unix timestamp) + time of creation (Unix timestamp) 11