Hi,
mOleCuleZz wrote:I just used this code earlier to change some directory chmods and it worked just fine.
chmod("/somedir/somefile", 0777);
If that's true then surely this would work, no? ...
<?php
$dir = $_SERVER['DOCUMENT_ROOT'].'/_lib/photos/'.$id;
if(!is_dir($dir)){
mkdir($dir);
chmod($dir, 0777);
mkdir($dir.'/websize');
chmod($dir.'/websize', 0777);
mkdir($dir.'/thumbsize');
chmod($dir.'/thumbsize', 0777);
}
?>
P.
PS Have a look at the manual entry for mkdir(). The comments at the bottom of the page could well solve the problem for you. Let us know if any actually do!!