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
---------------------------------------------------------------------------