$file_name_with_full_path = './chitty/insurance/lic/'.$filename;
header('Content-type: application/xls');
header("Content-Disposition: attachment; filename=".$filename);
header("Pragma: no-cache");
header("Expires: 0");
header('Cache-Control: public');
if(file_exists('./chitty/insurance/lic/'.$filename))
unlink('./chitty/insurance/lic/'.$filename);
$xx=fopen("./chitty/insurance/lic/".$filename,"w");
chmod("./chitty/insurance/lic/".$filename,0755);
chown($file_name_with_full_path, "devuser"); // change owner
fwrite($xx,$excltable);
fclose($xx);
我使用 chown() 函数,但它不起作用。请帮我解决这个问题