Hi all. Quick question about a chmod error I'm getting.
Using the following code:
$file = "phonelist.csv";
chmod("$file",0777);
$deptname = "english";
$newfile = $deptname . "_" . substr($file,0,-4) . ".inc.php";
rename($file,$newfile);
I get the following error:
"chmod failed: Operation not permitted in..."
Now, I assume this is because httpd does not have rights to chmod, but will setting it up such that it does open any security holes?
Can anyone advise how (if) this could be set up such that I can chmod files without exposing security risks?
I really need to have the script able to chmod the files after they've been uploaded by the user so they can be renamed and formatting performed.
Thanks in advance.
Pablo