Did you try quoting the directory path?
mkdir("/path/to/directory",0777);
`mkdir --mode=777 $dirpath`;
or/
`mkdir -m 777 $dirpath`;
$path="yourdirectory";
$dh = opendir($path);
while ($temp = readdir($dh)) {
if ($temp!='.' && $temp!='..' && $temp!='.htaccess') chmod($temp,777); }
also this might help you a bit
http://ir.php.net/manual/en/function.chm...
×
3,126 views
Usually answered in minutes!
×