Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Why?


NoID

Recommended Posts

Posted

Hi members, i am trying to install PDF_Data_sheet iv dont every thing correct i think, and this is my first time installing a script, well i have installed every thing but when i go to my website click on the adobe logo and then a page opens and it says.

 

 

Warning: getimagesize: Unable to open 'images/pdflogo/logo.gif' for reading. in /home/httpd/vhosts/mysite.co.uk/httpdocs/catalog/pdf/pdf_datasheet_functions.php on line 50

 

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/mysite.co.uk/httpdocs/catalog/pdf/fpdf/fpdf.php on line 1596

FPDF error: GIF parser: unable to open file images/pdflogo/logo.gif

 

Can this be because i have put the code below in the wrong place of product_info.php file

 

english:

define('TEXT_PDF_DOWNLOAD', 'Click on the Acrobat-Symbol to download this page as a PDF-Document.');

 

or

 

product_info.php of the catalog directory, for which i have put this code (below)

 

<?php echo '<a href="' . tep_href_link(FILENAME_PDF_DATASHEET, 'products_id=' . $product_info['products_id']) .'" target="_blank">' . tep_image('images/pdf.gif',TEXT_PDF_DOWNLOAD) .'</a>'; ?>

 

Also i have read on a different post that my open_basedir should be to no value well it is but why am i still getting an error?

 

this is what is says

 

open_basedir

/home/httpd/vhosts/mysite.co.uk/httpdocs:/tmp

Posted

Does anyone have any clue of what i need to do next please,

i really need help on this,

 

Thank you

Posted

This is what i have between these line (1052 ...)

 

case 'I':

//Send to standard output

if(isset($HTTP_SERVER_VARS['SERVER_NAME']))

{

//We send to a browser

Header('Content-Type: application/pdf');

if(headers_sent())

$this->Error('Some data has already been output to browser, can\'t send PDF file');

Header('Content-Length: '.strlen($this->buffer));

Header('Content-disposition: inline; filename='.$name);

Header("Pragma: public"); // <-- hack for SSL-Apache/IE5.x-IE6.x display problem

}

echo $this->buffer;

break;

case 'D':

//Download file

if(isset($HTTP_SERVER_VARS['HTTP_USER_AGENT']) and strpos($HTTP_SERVER_VARS['HTTP_USER_AGENT'],'MSIE'))

Header('Content-Type: application/force-download');

else

Header('Content-Type: application/octet-stream');

if(headers_sent())

$this->Error('Some data has already been output to browser, can\'t send PDF file');

Header('Content-Length: '.strlen($this->buffer));

Header('Content-disposition: attachment; filename='.$name);

echo $this->buffer;

break;

case 'F':

//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':

//Return as a string

return $this->buffer;

default:

$this->Error('Incorrect output destination: '.$dest);

}

return '';

}

 

i am abit of an idiot as i dont know alot of this stuff :blush:

 

i have customers waiting for this script so i reall need it please and thank you

Archived

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

×
×
  • Create New...