(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