Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fopen does not work on my IIS server, how can I solve that?


Bilal81

Recommended Posts

Posted

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?

Posted

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?

Posted
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...