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

From: Date: Thu, 08 Feb 2007 14:03:12 +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-248575@lists.php.net to get a copy of this message
# angelo@zlogic.co.za / 2007-02-08 16:47:26 +0200: > 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. How much space? You need at least 1GB. But seriously, I don't see the behaviour you mention: <?php class DirnameWithSpace extends Tence_TestCase { function setUp() { $this->d = $this->mkdtemp(); $this->dir = $this->d->path() . '/foo bar'; mkdir($this->dir); } function test() { return $this->assertTrue(is_dir($this->dir)); } } ?> -- 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

« previous php.general (#248575) next »