Bilal81 Posted March 14, 2007 Posted March 14, 2007 The error message I get is as follows: Warning: fopen(c:\inetpub\wwwroot/o/pricelist/pricelist_1.pdf) [function.fopen]: failed to open stream: Permission denied in C:\Inetpub\wwwroot\o\admin\pdf_fpdf.php on line 1065 FPDF error: Unable to create output file: c:\inetpub\wwwroot/o/pricelist/pricelist_1.pdf //Save to local file $f=fopen($name,'wb'); if(!$f) $this->Error('Unable to create output file: '.$name); fwrite($f,$this->buffer,strlen($this->buffer)); fclose($f); break; case 'S': I have set read and write permission for the pricelist folder, but it just won't work. Any suggestions to get around this error?
Guest Posted March 14, 2007 Posted March 14, 2007 Do you have the correct write access on the folder it writes the information to and not the file that is creating it. The error message I get is as follows: Warning: fopen(c:\inetpub\wwwroot/o/pricelist/pricelist_1.pdf) [function.fopen]: failed to open stream: Permission denied in C:\Inetpub\wwwroot\o\admin\pdf_fpdf.php on line 1065 FPDF error: Unable to create output file: c:\inetpub\wwwroot/o/pricelist/pricelist_1.pdf //Save to local file $f=fopen($name,'wb'); if(!$f) $this->Error('Unable to create output file: '.$name); fwrite($f,$this->buffer,strlen($this->buffer)); fclose($f); break; case 'S': I have set read and write permission for the pricelist folder, but it just won't work. Any suggestions to get around this error?
Bilal81 Posted March 15, 2007 Author Posted March 15, 2007 Do you have the correct write access on the folder it writes the information to and not the file that is creating it. Through IIS I gave even the root folder all rights, but it didn't help. But when I changed the User to Administrator it began working. So it seems it not only has to do with folder rights but also with user rights. Thank you.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.