0
votes

on localhost I dont have any problem with images. Unfortunatelly on production server images are not shown. I did set 777 permissions to /cache/ folder. Anyone have an idea why pictures are not showing? Or is it possible to disable cache?

        $img = file_get_contents('http://***/images/shop/logo.png');
        $this->Image('@'.$img, 12, 12, 45, 0, 'PNG', $this->contractor->web);

path to tcpd is /libs/tcpdf/tcpdf.php

I have setted 777 for /libs/tcpdf/cache

What Iam doing wrong? as I said it works on localhost

1
wrong path... what do you mean?Petr Velký
$_SERVER['SERVER_NAME'] is used as a prefix of path [this url may help you][1] [1]: stackoverflow.com/questions/12423107/…Himanshu Pandey

1 Answers

0
votes

did you check if you both server you can do this:

file_get_contents(__URL_AND_NOT_PATH_HERE__)

basically the first thing is to check an option called allow_url_fopen