note 65155 added to function.link

From: Date: Tue, 25 Apr 2006 18:32:10 +0000
Subject: note 65155 added to function.link
Groups: php.notes 
Request: Send a blank email to php-notes+get-109661@lists.php.net to get a copy of this message
I noticed that, differently from Unix ln command, the second parameter can´t be a directory name, i.e., if you want to create a link with the same filename of the target file (obviously on different directories), you must specify the filename on the link parameter. Example: Unix ln command: ln /dir1/file /dir2/ // ok, creates /dir2/file link PHP link function: link ("/dir1/file", "/dir2/"); // wrong, gives a "File exists" warning link ("/dir1/file", "/dir2/file"); // ok, creates /dir2/file link ---- Server IP: 66.163.161.117 Probable Submitter: 200.255.125.98 ---- X-Spam-Status: Yes, hits=7.4 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HEAD_ILLEGAL_CHARS autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.link.php Edit -- http://master.php.net/note/edit/65155 Del: integrated -- http://master.php.net/note/delete/65155/integrated Del: useless -- http://master.php.net/note/delete/65155/useless Del: bad code -- http://master.php.net/note/delete/65155/bad+code Del: spam -- http://master.php.net/note/delete/65155/spam Del: non-english -- http://master.php.net/note/delete/65155/non-english Del: in docs -- http://master.php.net/note/delete/65155/in+docs Del: other reasons-- http://master.php.net/note/delete/65155 Reject -- http://master.php.net/note/reject/65155 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#109661) next »