linux soft link and php directory listing [RESOLVED]
Hey there,
I'm using linux (debian distrib), and was wondering on how I could get to identify a soft link directory as a directory (they are recognized as files)
(talking about the "ln -s" function)
problem is that all directories are recognized as files using the php is_dir() function...
help on this would be appreciated!
thx :wave:
Re: linux soft link and php directory listing [UNRESOLVED]
Use the is_link() function to determine whether or not the supplied path is a symbolic link. Then use the readlink() function to resolve the path of the link.
Re: linux soft link and php directory listing [UNRESOLVED]
thx, also found a useful function: realpath
:wave: