mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
description and example are rewritten a bit by George Miroshnikov
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@172325 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
6ae6e45e80
commit
0faed4a2db
1 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.touch">
|
||||
<refnamediv>
|
||||
|
@ -16,9 +16,10 @@
|
|||
</methodsynopsis>
|
||||
<para>
|
||||
Attempts to set the access and modification time of the file named by
|
||||
filename to the value given by time. If the option <parameter>time</parameter> is not
|
||||
given, uses the present time. This is equivalent to what utime
|
||||
(sometimes referred to as utimes) does. If the third option
|
||||
<parameter>filename</parameter> to the value given by
|
||||
<parameter>time</parameter>. If the parameter <parameter>time</parameter>
|
||||
is not given, uses the present time. This is equivalent to what utime
|
||||
(sometimes referred to as utimes) does. If the third parameter
|
||||
<parameter>atime</parameter> is present, the access time of the given
|
||||
filename is set to the value of <parameter>atime</parameter>.
|
||||
Note that the access time is always modified, regardless of the number
|
||||
|
@ -34,10 +35,9 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
if (touch($FileName)) {
|
||||
echo "$FileName modification time has been
|
||||
changed to todays date and time";
|
||||
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";
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue