Include (Something.pdf) Failed To Open Stream: No Such File Or Directory

Hello all,

I am new in yii and I am so interested with it…

I have problem with EYiiPdf.

in localhost, it work but in live host (unix) any problem with directory …

following is it’s warning …


 include(mpdf.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory 

tx before … :rolleyes:

Is the name of that file mpdf.php exactly ?

Or something else?

Linux is case-sensitive, so you need to be extra careful to get the capitalization right. :)

Hi Ande Zake,

I know that your post is a bit old, but I just had a similar error with this extension and had to look for a solution too…

In my case, it turned out that the rights on the folders were not properly set (wrong ownership actually…).

Thus, make sure that PHP has the right to read your folder. On Debian and ubuntu, the PHP user is usually www-data.

Hope that this will help ;)