6
« on: December 28, 2002, 12:46:55 AM »
the installation went fine but after that im having probs:
everytime i try to add a chategorie i get:
Warning: MkDir failed (Disk quota exceeded) in /home/www/cncgamer/pics/admin/categories.php on line 78
Warning: MkDir failed (Disk quota exceeded) in /home/www/cncgamer/pics/admin/categories.php on line 81
Warning: MkDir failed (Disk quota exceeded) in /home/www/cncgamer/pics/admin/categories.php on line 78
Warning: MkDir failed (Disk quota exceeded) in /home/www/cncgamer/pics/admin/categories.php on line 81
Category added
And when i try to add a pic it says it cant write to the directory although permissions are set correctly. Any ideas?
This is my php file were the error is:
function create_cat_folder($path, $mode) {
if (@is_dir($path)) {
@chmod($path, $mode);
return true;
}
else {
$oldumask = umask(0);
$result = mkdir($path, $mode); line 78
umask($oldumask);
if (!@is_dir($path) || !$result) {
$result = mkdir($path, 0777); line 81
@chmod($path, $mode);
}
return $result;
}
}