mirror of
https://github.com/php/doc-it.git
synced 2026-04-28 01:33:12 +02:00
64474054d2
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@314543 c90b9560-bf6c-de11-be94-00142212c4b1
74 lines
2.2 KiB
XML
74 lines
2.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- splitted from ./it/functions/filesystem.xml, last change in rev 1.15 -->
|
|
<!-- last change to 'filemtime' in en/ tree in rev 1.2 -->
|
|
<!-- EN-Revision: n/a Maintainer: cortesi Status: working -->
|
|
<!-- OLD-Revision: 1.134/EN.1.2 -->
|
|
<refentry xml:id="function.filemtime" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>filemtime</refname>
|
|
<refpurpose>Restituisce l'ora delle modifiche al file</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Descrizione</title>
|
|
<methodsynopsis>
|
|
<type>int</type><methodname>filemtime</methodname>
|
|
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Restituisce l'ora dell'ultima modifica al file o &false; in caso d'errore.
|
|
L'ora viene restituita come un timestamp di Unix.
|
|
</para>
|
|
|
|
¬e.clearstatcache;
|
|
|
|
&tip.fopen-wrapper.stat;
|
|
|
|
<para>
|
|
Nota: Questa funzione restituisce l'ora in cui i blocchi di dati di un file
|
|
vengono scritti, cioè l'ora in cui il contenuto del file è cambiato.
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title>Esempio di uso di <function>filemtime</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
// ad esempio visualizzerà: somefile.txt was last modified: December 29 2002 22:16:23.
|
|
|
|
$filename = 'somefile.txt';
|
|
if (file_exists($filename)) {
|
|
echo "$filename was last modified: " . date ("F d Y H:i:s.", filemtime($filename));
|
|
}
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
Vedere anche <function>filectime</function>, <function>stat</function>,
|
|
<function>touch</function> e <function>getlastmod</function>.
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|