You are here: is_dir paths « PHP « IT news, forums, messages
is_dir paths

Posted by "Mark Rees" on 09/26/05 14:13

Hello

I am having trouble with is_dir

I am trying to check whether /lists/admin/temp exists (which it does).

However, I cannot get the function to work by specifying the path as above -
it only works if I do it relative to the current working directory. So:

var_dump (is_dir(getcwd()));
var_dump (is_dir('temp'));
#temp is one level below the working directory
var_dump (is_dir("/lists/admin/temp"));

returns
bool(true)
bool(true)
bool(false)

Thanks in advance

Mark
--
www.itsagoodprice.com - top-brand electronics for less.

 

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

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