(include_path='.:/usr/local/php5_3/lib/php') in /home/content/06/11735806/html/systems/CA/pdf.php [closed]

StackOverflow https://stackoverflow.com/questions/21933725

  •  14-10-2022
  •  | 
  •  

문제

require_once() [function.require]: Failed opening required tcpdf_include.php

(include_path='.:/usr/local/php5_3/lib/php') in /home/content/06/11735806/html/systems/CA/pdf.php

I am getting this error and my link is http://caware.in/pinal.php . Please help me as soon as possible with the perfect solution.

도움이 되었습니까?

해결책

In TCPDF there is tcpdf_iclude.php and if you open that file you can see something as

    $tcpdf_include_dirs = array(realpath('../tcpdf.php'), 
'/usr/share/tcpdf/tcpdf.php', 
'/usr/share/php-tcpdf/tcpdf.php', '/var/www/tcpdf/tcpdf.php', 
'/var/www/html/tcpdf/tcpdf.php', 
'/usr/local/apache2/htdocs/tcpdf/tcpdf.php');

Now check where is your TCPDF folder then add the path in that config file and it will solve the issue. if its inside /home/content/06/11735806/html/systems/CA

then add the following on the include dirs as

/home/content/06/11735806/html/systems/CA/tcpdf/tcpdf.php

다른 팁

Check that you are linking to the right file in your require_once() function.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top