cvs: phpdoc-hu /reference/filesystem/functions file-exists.xml
[email protected] ("Lajos Cseppent?")
| Newsgroups | php.doc.hu |
|---|---|
| Message-ID | <cvschappy1174209403@cvsserver> |
chappy Sun Mar 18 09:16:43 2007 UTC
Added files:
/phpdoc-hu/reference/filesystem/functions file-exists.xml
Log:
sync
http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/filesystem/functions/file-exists.xml?view=markup&rev=1.1
Index: phpdoc-hu/reference/filesystem/functions/file-exists.xml
+++ phpdoc-hu/reference/filesystem/functions/file-exists.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.15 Maintainer: chappy Status: ready -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.file-exists">
<refnamediv>
<refname>file_exists</refname>
<refpurpose>Ellenõrzi, hogy a megadott fájl vagy könyvtár létezik-e</refpurpose>
</refnamediv>
<refsect1>
<title>Leírás</title>
<methodsynopsis>
<type>bool</type><methodname>file_exists</methodname>
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
</methodsynopsis>
<simpara>
&true;-val tér vissza, ha a <parameter>filename</parameter> paraméterben megadott
fájl vagy könyvtár létezik, ellenkezõ esetben &false;-szal.
</simpara>
<para>
Windowson használhatóak a <filename>//computername/share/filename</filename> vagy
<filename>\\computername\share\filename</filename> alakú elérési utak a hálózati
megosztásokban található fájlok ellenõrzéséhez.
</para>
<para>
<example>
<title>Egy fájl létezésének meghatározása</title>
<programlisting role="php">
<![CDATA[
<?php
$filename = '/path/to/foo.txt';
if (file_exists($filename)) {
echo "The file $filename exists";
} else {
echo "The file $filename does not exist";
}
?>
]]>
</programlisting>
</example>
</para>
¬e.clearstatcache;
&tip.fopen-wrapper.stat;
<warning>
<para>
Ez a függvény &false;-szal tér vissza a <link linkend="features.safe-mode">safe mode</link>
korlátozások miatt hozzáférhetetlen fájlok esetén. Azonban ezek a
fájlok még <link linkend="function.include">beágyazhatóak</link>, ha
a <link
linkend="ini.safe-mode-include-dir">safe_mode_include_dir</link>-ben vannak elhelyezve.
</para>
</warning>
<para>
Lásd még: <function>is_readable</function>, <function>is_writable</function>,
<function>is_file</function> és <function>file</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:"../../../../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
-->