cvs: phpdoc-hu /reference/dir/functions chdir.xml
| From: | Cece) Szabolcs | Date: | Tue, 30 Nov 2004 20:18:23 +0000 |
| Subject: | cvs: phpdoc-hu /reference/dir/functions chdir.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-1177@lists.php.net to get a copy of this message | ||
cece Tue Nov 30 15:18:23 2004 EDT
Modified files:
/phpdoc-hu/reference/dir/functions chdir.xml
Log:
sync
http://cvs.php.net/diff.php/phpdoc-hu/reference/dir/functions/chdir.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-hu/reference/dir/functions/chdir.xml
diff -u phpdoc-hu/reference/dir/functions/chdir.xml:1.2
phpdoc-hu/reference/dir/functions/chdir.xml:1.3
--- phpdoc-hu/reference/dir/functions/chdir.xml:1.2 Wed Apr 17 02:57:56 2002
+++ phpdoc-hu/reference/dir/functions/chdir.xml Tue Nov 30 15:18:23 2004
@@ -1,25 +1,53 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- splitted from ./hu/functions/dir.xml, last change in rev 1.4 -->
-<!-- last change to 'chdir' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: 1.2 Maintainer: kgergely Status: ready -->
-<!-- OLD-Revision: 1.19/EN.1.2 -->
+<!-- EN-Revision: 1.11 Maintainer: cece Status: ready -->
+<!-- CREDITS: kgergely -->
<refentry id="function.chdir">
<refnamediv>
<refname>chdir</refname>
<refpurpose>Könyvtárat vált</refpurpose>
</refnamediv>
<refsect1>
- <title>Leírás</title>
+ &reftitle.description;
<methodsynopsis>
<type>int</type><methodname>chdir</methodname>
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
</methodsynopsis>
<para>
Megváltoztatja a PHP aktuális könyvtárát a
- <parameter>directory</parameter> könyvtárra. &false; értékkel
- tér vissza, ha nem lehet a könyvtárváltást teljesíteni,
- egyébként &true; értéket ad.
+ <parameter>directory</parameter> könyvtárra. &return.success;
</para>
+ <para>
+ <example>
+ <title><function>chdir</function> példa</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+// aktuális könyvtár
+echo getcwd() . "\n";
+
+chdir('public_html');
+
+// aktuális könyvtár
+echo getcwd() . "\n";
+
+?>
+]]>
+ </programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+/home/vincent
+/home/vincent/public_html
+]]>
+ </screen>
+ </example>
+ </para>
+ ¬e.sm.uidcheck.dir;
+ <para>
+ Lásd még:
+ <function>getcwd</function>.
+ </para>
</refsect1>
</refentry>