D
D
dk-web2015-10-03 22:16:42
PHP
dk-web, 2015-10-03 22:16:42

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" );
}

FPDF is working, but TCPDF is not in any ... I climbed in the configs, but does not react to changes in any way ...
For the first time I encounter this ...
How to connect it?)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Svirsky, 2015-10-03
@dk-web

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 question

Ask a Question

731 491 924 answers to any question