|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-09-20 16:15 UTC] kevincarlson at houston dot rr dot com
from CVS for 200209132100 Loop through a directory or set your own variables and: $erk = is_link($dirname."/".$file); $erk2 = @readlink($dirname."/".$file); echo "Checking file=$dirname/$file<br> -LinkStatus=$erk<br> --Readlink=$erk2<br>"; produces for me on a directory containing a link: Checking file=/share/web/slinks/htdocs -LinkStatus= --Readlink=/usr/local/apache2/manual/ So Readlink() works, is_link() does not. Funky huh? PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Mar 20 04:00:02 2026 UTC |
is_link() returns boolean and readlink() returns a string.. That's why it's empty. Try doing 'var_dump(is_link("some_link"));' and it should be clear.