Re: [PHP-DEV] Bug #12220: help

2001-07-18 Thread Hartmut Holzgraefe

[EMAIL PROTECTED] wrote:
> 09  10 $dir="username";
> 11 if(is_dir($dir))
> [...]
> php return a error...NO SUCH DIRECTORY OR FILE ON LINE 11 ...

you have to check for file existance with file_exists() before you
try to probe for its filetype

-- 
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12220: help

2001-07-17 Thread boo_d81

From: [EMAIL PROTECTED]
Operating system: windows 98
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  help

the problem is 
i want to check a directory ... 
09  
php return a error...NO SUCH DIRECTORY OR FILE ON LINE 11 ... 
my goals is to check is there a directory name "username" if there are not
a directory name "username" i want to create it ..can anybody help me how i
can solve this problem 


thanx before that.. 

-- 
Edit bug report at: http://bugs.php.net/?id=12220&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]