svn: /phpdoc/en/trunk/reference/filesystem/functions/ link.xml

From: Date: Thu, 10 Feb 2011 14:03:50 +0000
Subject: svn: /phpdoc/en/trunk/reference/filesystem/functions/ link.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7735@lists.php.net to get a copy of this message
vrana Thu, 10 Feb 2011 14:03:50 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=308193 Log: Rename parameters (doc bug #53560) Bug: http://bugs.php.net/53560 (Closed) link() confusing parameter description Changed paths: U phpdoc/en/trunk/reference/filesystem/functions/link.xml Modified: phpdoc/en/trunk/reference/filesystem/functions/link.xml =================================================================== --- phpdoc/en/trunk/reference/filesystem/functions/link.xml 2011-02-10 13:52:21 UTC (rev 308192) +++ phpdoc/en/trunk/reference/filesystem/functions/link.xml 2011-02-10 14:03:50 UTC (rev 308193) @@ -10,8 +10,8 @@ &reftitle.description; <methodsynopsis> <type>bool</type><methodname>link</methodname> - <methodparam><type>string</type><parameter>from_path</parameter></methodparam> - <methodparam><type>string</type><parameter>to_path</parameter></methodparam> + <methodparam><type>string</type><parameter>target</parameter></methodparam> + <methodparam><type>string</type><parameter>link</parameter></methodparam> </methodsynopsis> <para> <function>link</function> creates a hard link. @@ -23,18 +23,18 @@ <para> <variablelist> <varlistentry> - <term><parameter>from_path</parameter></term> + <term><parameter>target</parameter></term> <listitem> <para> - The link name. + Target of the link. </para> </listitem> </varlistentry> <varlistentry> - <term><parameter>to_path</parameter></term> + <term><parameter>link</parameter></term> <listitem> <para> - Target of the link. + The link name. </para> </listitem> </varlistentry> @@ -92,11 +92,10 @@ <programlisting role="php"> <![CDATA[ <?php +$target = 'source.ext'; // This is the file that already exists +$link = 'newfile.ext'; // This the filename that you want to link it to -$from_path = 'source.ext'; // This is the file that already exists -$to_path = 'newfile.ext'; // This the filename that you want to link it to - -link($from_path, $to_path); +link($target, $link); ?> ]]> </programlisting>

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