Answer the question
In order to leave comments, you need to log in
How to connect tcpdf correctly (prescribe paths)?
And laughter and sin, but at point blank range it is impossible to connect TCPDF...
Warning: require_once(tcpdf/tcpdf.php): failed to open stream blah blah blah...
Two methods side by side:
public function pdf2(){
require_once( "tcpdf/tcpdf.php" );
}
public function generate_pdf(){
require_once( "fpdf/fpdf.php" );
}
Answer the question
In order to leave comments, you need to log in
As an option:
write echo __DIR__ in the code (to understand which directory to write the path relative to):
and then relative to it - write all the paths through /../../
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question