Posted by Chung Leong on 10/31/52 11:52
André Hänsel wrote:
> Hi,
>
> is there a function like is_subdir in PHP?
>
> It's not, is it?
>
> Is there a way to achieve its functionality (which is probably clearly
> explained by its name ;)) in PHP?
>
> Regards,
> André
If you mean a function that tells you whether a directory is a
sub-directory in another, that answer is no. You can approximate it
from getting the absolute path of both with realpath() and then compare
them.
[Back to original message]
|