note 26617 added to function.link
| From: | tom at tom420 dot com | Date: | Wed, 06 Nov 2002 20:14:14 +0000 |
| Subject: | note 26617 added to function.link | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39068@lists.php.net to get a copy of this message | ||
If this function is confusing for you, then you are not familiar with Unix where the command to
create a link is exactly the same:
ln <target> <link_name>
where target is the file you want a link to and link_name is the name (and location) of the new link
Also, you should considere the returned value to be true of false, not 1 or 0, like:
if (link (bla, bla))
{
echo "ok";
}
else
{
echo "failed";
}
--
http://www.php.net/manual/en/function.link.php
http://master.php.net/manage/user-notes.php?action=edit+26617
http://master.php.net/manage/user-notes.php?action=delete+26617
http://master.php.net/manage/user-notes.php?action=reject+26617