Jump to content

the fpdf library - error- please help


mits

Recommended Posts

hi,

 

i'm using the fpdf library to generate PDF's from form input. It all worked well on my local host, but now that i have transferred to a web server it displays the following error when trying to generate a PDF.

 

 

Warning: require(/fpdf16/fpdf.php) [function.require]: failed to open stream: No such file or directory in /home/ddgq0o2n/public_html/quote_builder/pdf.php on line 2

 

Fatal error: require() [function.require]: Failed opening required '/fpdf16/fpdf.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ddgq0o2n/public_html/quote_builder/pdf.php on line 2

 

 

i have searched for "include_path", but can't find it anywhere.

 

i'm thinking it's a server problem, where the library may not be compatible or something needs to be switched on, as it worked fine on my local host.

 

 

any help and suggestions welcome

 

 

thanks.

 

 

Link to comment
https://forums.phpfreaks.com/topic/226339-the-fpdf-library-error-please-help/
Share on other sites

hi, thanks for that....i added the full path to the file and i get the following error;

 

Warning: require() [function.require]: URL file-access is disabled in the server configuration in /var/www/sites/stage.demomedia.co.uk/html/quote_generator/pdf.php on line 2

 

Warning: require(http://www.demomedia.co.uk/quote_builder/fpdf16/fpdf.php) [function.require]: failed to open stream: no suitable wrapper could be found in /var/www/sites/stage.demomedia.co.uk/html/quote_generator/pdf.php on line 2

 

 

i think it's progress.

 

any ideas?

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.