Hi Iain,
Same thing was happening to me. I found that on my localhost all was
well. Then migrated my development to a webhost with
1and1.co.uk
and no images. I've searched for a solution, but one thing worked for
me.
As a lot of advice from others specifying <img src="var/www/etc" />,
well fair enough if you have root access, but if you've only got a
hosting package then
these are the steps I made to get my images to appear:
1. Get the document root for your hosting package, not the part of the
domain
http://domain.co.uk!
the best way to get this is via phpinfo(), just create a file with
whatever name you want filename.php and then upload that to the web
root /
Look for the line where it says document root. I found that with
1and1 hosting it looks something like the following:
/kunden/homepages/18/d12345678902/htdocs basically this is
the
http://domain.co.uk
don't forget to delete that file with the phpinfo(); in it
2. To get your images working place that in the img tag <img src="/
kunden/homepages/18/d12345678902/htdocs/path/to/image" />
3. With that my I went back and turned off the DOMPDF_ENABLE_REMOTE
i.e set to false, apparently in the documentation there are security
issues
with this turned on. the only thing that I have activated in the
dompdf_config.custom.inc.php is the /tmp directory.
I still have a problem with file not being written to the tmp
folder! Hopefully some one out there can give a step by step guide to
that.
Anyway, whether you've already solved your dilemma or not, I hope this
can help others.
Happy coding everyone,
Alvin