On Monday, September 1, 2003, at 03:41 PM, Curt Zirzow wrote:
print $buildingPath . 'br';
if (opendir($buildingPath) == false)
if (!mkdir($buildingPath))
print 'false br';
A print(false
print $buildingPath . 'br';
if (opendir($buildingPath) == false)
if (!mkdir($buildingPath))
print 'false br';
A print(false $buildingPathbr) might yield as to why it isn't
creating it.
I
I figured out the permissions issue to allow gd to create image files,
but I also need to create folders for those images. I've come up with a
routine (below) but it fails to create the directories. I've made sure
that the directory that the first directory is created in has the
* Thus wrote Seth Willits ([EMAIL PROTECTED]):
?php
$path = path/path2/path3/path4/path5;
$buildingPath = existingFolder;
$pathComponents = split(/, $path);
foreach ($pathComponents as $value) {
$buildingPath = $buildingPath . / . $value;
4 matches
Mail list logo