|
Permissions Problem
Hi peeps,
I need help. This is part of a code that uploads images to my webserver however it wont assign permissions. I need the files that upload (pics) to have 775,, can anybody help?
[php]copy ($line[tmp_name], '../temp/' . $file);
$new = new_dim ($info[0], $info[1], $sizes[small][0], $sizes[small][1]);
resize ('../temp/' . $file, 'cp-thumbs/' . $file, $info[0], $info[1], $new[x], $new[y], $info[2]);
$new = new_dim ($info[0], $info[1], $sizes[thumb][0], $sizes[thumb][1]);
resize ('../temp/' . $file, '../thumbs/' . $file, $info[0], $info[1], $new[x], $new[y], $info[2]);
$new = new_dim ($info[0], $info[1], $sizes[large][0], $sizes[large][1]);
resize ('../temp/' . $file, '../images/' . $file, $info[0], $info[1], $new[x], $new[y], $info[2]);
$new = new_dim ($info[0], $info[1], $sizes[enlarge][0], $sizes[enlarge][1]);
resize ('../temp/' . $file, '../enlarge/' . $file, $info[0], $info[1], $new[x], $new[y], $info[2]);
unlink ('../temp/' . $file);
mysql_query ('INSERT INTO ' . $dbimgs . ' VALUES(\'0\', \'' . $_POST['id'] . '\', \'' . $file . '\')', $link);
mysql_query ('UPDATE ' . $dblist . ' SET images=images+1 WHERE id=\'' . $_POST['id'] . '\' LIMIT 1', $link);
$upload = true;
continue;[php]
|