Hello all,
I have a small problem here. I am using the CodeIgniter framework for an application I am extending. No choice there. However one of the things I have had to add is a reporting system, which includes header images, and the ability to download these reports as files.
Outputting to a browser is fine, and outputting to a file is mostly fine, and downloading the file is fine.
I am using ob_start(), ob_get_contents() and ob_end_flush() along with fopen and fwrite to handle both outputs.
The image of course works fine in the html side of things, but when outputting to a file, something changes it so that the image, instead of referencing "insert address here" references "file:///downloaddirectory/specified address", which for obvious reasons wont work.
Is this an issue with php or is there a way around this at all? The issue happens on both windows and linux so it isnt a particular operating system causing the problem.
Thanks in advance,
Rurik

