开发者

dompdf images (in codeigniter)

I'm creating a pdf that has 3 images.

  • 2 images are from my own server
  • 1 is from an external server
  • DOMPDF_ENABLE_REMOTE is set to true
  • all images are called via <img src="http://domain.com/image.jpg" />

now the problem is that of the 3 images only 1 works, the external server one. Having tested a whole lot of combinations, it will pull any images from any other server but my own. I dono what's going on.开发者_如何学JAVA

Why is it only my own server that is causing the problem?

Thanks


Worked it out. It as the server and the firewall that prevented requested from itself.

e.g. wget http://myserver.com/image.jpg wasn't working

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜