Include Path Error In FPDF - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Include Path Error In FPDF (/showthread.php?tid=55043) |
Include Path Error In FPDF - El Forum - 10-07-2012 [eluser]rochellecanale[/eluser] hey guys I am generating a PDF file out of FPDF library. just want to ask what is my error in my code below this is my sample code: Code: <?php because when I attempt to run this code in my view it shows Code: Fatal error: require(): Failed opening required 'http://localhost/eMLM/fpdf/fpdf.php' (include_path='.;C:\\\\\\\\xampp\\\\\\\\php\\\\\\\\PEAR') in C:\xampp\htdocs\eMLM\application\views\sites\datepdf.php on line 3 Where should i put the file of fpdf? Inside my folder which is eMLM or inside of htdocs? I cant' get the path. Help me guys. But when i try to create a seperate folder that contains a pdf file test.pdf it shows the PDF file. By the way I also tried full path and relative path but it always shows the error above. Include Path Error In FPDF - El Forum - 10-19-2012 [eluser]kreamik[/eluser] cannot help you but i can give you an idea : since TCPDF is successor for FPDF i suggest you to use TCPDF since it fully support for PHP5, you can start here : hxxp://modije.in/blog/?p=14 |