Im trying to use the php function 'readfile(path_to_image)' to dynamically display an image. While its working with php script file encoded as ANSI, it fails when the same script file encoded in UTF-8 (or even included in a file that uses UTF-8). Any idea how to solv this?
Sorry, the code is as follow:
header('Content-Type: image/jpeg');
readfile('C:\wbs\uploads\admin\Koala.jpg');
As I said it works when file is ANSI, saving it as UTF-8 and it fails.
Thanks, David