cvs: phpdoc /en/reference/filesystem/functions link.xml

From: Date: Tue, 02 Jun 2009 20:50:49 +0000
Subject: cvs: phpdoc /en/reference/filesystem/functions link.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4100@lists.php.net to get a copy of this message
bjori Tue Jun 2 20:50:49 2009 UTC Modified files: /phpdoc/en/reference/filesystem/functions link.xml Log: - Fixed parameter order in the example - Rename the arguments to to_path and from_path to be cristal clear http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/link.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc/en/reference/filesystem/functions/link.xml diff -u phpdoc/en/reference/filesystem/functions/link.xml:1.13 phpdoc/en/reference/filesystem/functions/link.xml:1.14 --- phpdoc/en/reference/filesystem/functions/link.xml:1.13 Thu Jan 29 10:21:19 2009 +++ phpdoc/en/reference/filesystem/functions/link.xml Tue Jun 2 20:50:49 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.link"> <refnamediv> <refname>link</refname> @@ -10,8 +10,8 @@ &reftitle.description; <methodsynopsis> <type>bool</type><methodname>link</methodname> - <methodparam><type>string</type><parameter>target</parameter></methodparam> - <methodparam><type>string</type><parameter>link</parameter></methodparam> + <methodparam><type>string</type><parameter>to_path</parameter></methodparam> + <methodparam><type>string</type><parameter>from_path</parameter></methodparam> </methodsynopsis> <para> <function>link</function> creates a hard link. @@ -23,7 +23,7 @@ <para> <variablelist> <varlistentry> - <term><parameter>target</parameter></term> + <term><parameter>to_path</parameter></term> <listitem> <para> Target of the link. @@ -31,7 +31,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>link</parameter></term> + <term><parameter>from_path</parameter></term> <listitem> <para> The link name. @@ -82,10 +82,10 @@ <![CDATA[ <?php -$source = 'source.ext'; // This is the file that already exists $dest = 'newfile.ext'; // This the filename that you want to link it to +$source = 'source.ext'; // This is the file that already exists -link($source, $dest); +link($dest, $source); ?> ]]> </programlisting>

« previous php.doc.cvs (#4100) next »