Re: is_dir reading a folder with a space in the name?
| From: | T . Lensselink | Date: | Thu, 08 Feb 2007 15:14:57 +0000 |
| Subject: | Re: is_dir reading a folder with a space in the name? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248579@lists.php.net to get a copy of this message | ||
Like Roman said. I also don't see this behaviour.
Although my test is a lot more simple :)
<?php
$dir = "test dir";
if (is_dir($dir)) {
echo "It's a dir :)";
}
?>
On Thu, 08 Feb 2007 17:24:33 +0200, Angelo Zanetti <angelo@zlogic.co.za> wrote:
> its running on a linux server PHP 4.3.x
>
> What i mean is that the directory name has a space in it eg:
> srv/www/htdocs/site/Broker details/
>
>
>
> T.Lensselink wrote:
>
>>OS? PHP version?
>>
>>Tested with PHP4 on Win and *nix : works
>>
>>On Thu, 08 Feb 2007 16:47:26 +0200, Angelo Zanetti <angelo@zlogic.co.za>
> wrote:
>>
>>
>>>Hi All.
>>>
>>>
>>>I am reading directories and one of the directories has a space in it so
>>>when I run:
>>>
>>>if (is_dir($dir))
>>>
>>>
>>>it returns false. But I know the folder exists, so is there a way to
>>>force the read? Or what else should I do? rename it and then read it?
>>>
>>>Thanks in advance.
>>>
>>>
>>>--
>>>------------------------------------------------------------------------
>>>Angelo Zanetti
>>>Systems developer
>>>------------------------------------------------------------------------
>>>
>>>*Telephone:* +27 (021) 469 1052
>>>*Mobile:* +27 (0) 72 441 3355
>>>*Fax:* +27 (0) 86 681 5885
>>>*
>>>Web:* http://www.zlogic.co.za
>>>*E-Mail:* angelo@zlogic.co.za
>>><mailto:angelo@zlogic.co.za>
>>>
>>>--
>>>PHP General Mailing List (http://www.php.net/)
>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>
>>
>>
>
> --
> ------------------------------------------------------------------------
> Angelo Zanetti
> Systems developer
> ------------------------------------------------------------------------
>
> *Telephone:* +27 (021) 469 1052
> *Mobile:* +27 (0) 72 441 3355
> *Fax:* +27 (0) 86 681 5885
> *
> Web:* http://www.zlogic.co.za
> *E-Mail:* angelo@zlogic.co.za
> <mailto:angelo@zlogic.co.za>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php