From fce226114f4dc99e99a5e08a5da3c6deaf85fb03 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Sun, 31 Aug 2008 01:30:39 +0000 Subject: [PATCH] Added new example for touch() Added two examples for stat() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@265705 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/stat.xml | 73 +++++++++++++++++++++++- reference/filesystem/functions/touch.xml | 35 +++++++++++- 2 files changed, 106 insertions(+), 2 deletions(-) diff --git a/reference/filesystem/functions/stat.xml b/reference/filesystem/functions/stat.xml index edc4968b27..44e02702ca 100644 --- a/reference/filesystem/functions/stat.xml +++ b/reference/filesystem/functions/stat.xml @@ -1,5 +1,5 @@ - + stat @@ -166,6 +166,77 @@ + + &reftitle.examples; + + + <function>stat</function> example + + + + + + + + Using <function>stat</function> information together with <function>touch</function> + + +]]> + + + + + &reftitle.notes; ¬e.filesystem-time-res; diff --git a/reference/filesystem/functions/touch.xml b/reference/filesystem/functions/touch.xml index 151355864c..88b788d4f3 100644 --- a/reference/filesystem/functions/touch.xml +++ b/reference/filesystem/functions/touch.xml @@ -1,5 +1,5 @@ - + touch @@ -106,6 +106,39 @@ if (touch($FileName)) { echo "Sorry, could not change modification time of $FileName"; } ?> +]]> + + + + + + <function>touch</function> using the <parameter>time</parameter> parameter + + ]]>