Re: is_dir reading a folder with a space in the name?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# admin@xxxxxxxxxx / 2007-02-08 16:14:57 +0100:
> Like Roman said. I also don't see this behaviour.
> Although my test is a lot more simple :)
 
It's not complete:

> <?php
> $dir = "test dir";

mkdir($dir);
 
> if (is_dir($dir)) {
>     echo "It's a dir :)";
> }

rmdir($dir);


But even with those two calls, your and my tests aren't on the same
level of robustness.  Sure, the OP didn't ask for tests of *any*
robustness, I'm just saying that the increased verbosity gives the test
properties your test does not have.

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux