note 21972 added to function.is-link
| From: | andudi at gmx dot ch | Date: | Sun, 02 Jun 2002 14:44:12 +0000 |
| Subject: | note 21972 added to function.is-link | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31342@lists.php.net to get a copy of this message | ||
On my SuSE 7.2 is_link does not work on directories, but to find out, if a dir is a link, I use now
this:
$linkdir = $path.$linkdirname;
if (realpath($linkdir) != realpath($path)."/".$linkdirname):
//$linkdir is a symbolic linked dir!
...
and this works fine :-)
Andreas Dick
--
http://www.php.net/manual/en/function.is-link.php
http://master.php.net/manage/user-notes.php?action=edit+21972
http://master.php.net/manage/user-notes.php?action=delete+21972
http://master.php.net/manage/user-notes.php?action=reject+21972