svn: /phpdoc/en/trunk/reference/filesystem/functions/ touch.xml
| From: | Mark Wiesemann | Date: | Sun, 03 Jan 2010 22:14:04 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/filesystem/functions/ touch.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5744@lists.php.net to get a copy of this message | ||
wiesemann Sun, 03 Jan 2010 22:14:04 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293050
Log:
coding standards
Changed paths:
U phpdoc/en/trunk/reference/filesystem/functions/touch.xml
Modified: phpdoc/en/trunk/reference/filesystem/functions/touch.xml
===================================================================
--- phpdoc/en/trunk/reference/filesystem/functions/touch.xml 2010-01-03 21:47:39 UTC (rev 293049)
+++ phpdoc/en/trunk/reference/filesystem/functions/touch.xml 2010-01-03 22:14:04 UTC (rev 293050)
@@ -101,10 +101,10 @@
<programlisting role="php">
<![CDATA[
<?php
-if (touch($FileName)) {
- echo "$FileName modification time has been changed to present time";
+if (touch($filename)) {
+ echo $filename . ' modification time has been changed to present time';
} else {
- echo "Sorry, could not change modification time of $FileName";
+ echo 'Sorry, could not change modification time of ' . $filename;
}
?>
]]>
@@ -117,19 +117,13 @@
<programlisting role="php">
<![CDATA[
<?php
-/*
- * This is the touch time, we'll set it to one hour
- * in the past.
- */
+// This is the touch time, we'll set it to one hour in the past.
$time = time() - 3600;
-/* Touch the file */
-if(!touch('some_file.txt', $time))
-{
+// Touch the file
+if (!touch('some_file.txt', $time)) {
echo 'Whoops, something went wrong...';
-}
-else
-{
+} else {
echo 'Touched file with success';
}
?>