You are here: Re: is_subdir « PHP Programming Language « IT news, forums, messages
Re: is_subdir

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация