|
Posted by ImOk on 10/07/91 11:52
is_dir ("./mysubdir/mysubsubdir" )
or Windows
is_dir (".\\mysubdir\\mysubsubdir" )
.. means the current working directory.
Chung Leong wrote:
> 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.
Navigation:
[Reply to this message]
|