Thamks, evwryone.
I've never used is_dir.
It was a great help.
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
try:
if(is_dir($dir)) {
echo 'directory was found';
}
Yoroshiku,
Maxim Maletsky
PHPBeginner.com
Hiroshi Ayukawa writes:
> Does anyone know how to check a directory exiasts?
>
> Thanks in advance,
> Hiroshi Ayukawa
> http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=to
file_exists will perform a check if the file, no matter if it's a directory,
a regular file or a symlink.
if you want to know if it is a directory use
is_dir($file)
or refer to the php manual"Hiroshi Ayukawa" <[EMAIL PROTECTED]> schrieb im
Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
3 matches
Mail list logo