Re: Can't Make Directories Now

From: Date: Mon, 01 Sep 2003 23:34:12 +0000
Subject: Re: Can't Make Directories Now
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161400@lists.php.net to get a copy of this message
print $buildingPath . '<br>'; if (opendir($buildingPath) == false) if (!mkdir($buildingPath)) print 'false <br>';
A print("false $buildingPath<br>") might yield as to why it isn't creating it.
I already did that and like I said, it's always the correct path. Look at the very first line of the code above which was in the original path. Thanks for the tip on is_dir.
Actually -- using is_dir made it work. I wonder why.... Seth Willits --------------------------------------------------------------------------- President and Head Developer of Freak Software - http://www.freaksw.com Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames "Read the book! Be patient! All success comes from acquiring knowledge and experience."
        -- Seth Willits
---------------------------------------------------------------------------


« previous php.general (#161400) next »