Welcome Guest, Not a member yet? Register   Sign In
Can’t display image in jpg format
#3

[eluser]Wangringring[/eluser]
When I use this code Out of the CI.(Normal PHP without any framework) It's work properly !!
Code:
header("Cache-control: private");
header("Content-Type: image/jpg");
header("Content-Disposition: inline ;filename=arnon.jpg");
$fn=fopen("images/arnon.jpg","r");
fpassthru($fn);

I don't know why. It seems "fpassthru" didn't work in my CI.
When I use this code without CI, it returns My photo correctly.
But in CI returns Blank page and No any error occured.


Messages In This Thread
Can’t display image in jpg format - by El Forum - 08-27-2007, 01:03 AM
Can’t display image in jpg format - by El Forum - 08-27-2007, 05:29 AM
Can’t display image in jpg format - by El Forum - 08-27-2007, 07:58 PM
Can’t display image in jpg format - by El Forum - 08-28-2007, 08:32 PM
Can’t display image in jpg format - by El Forum - 03-23-2011, 09:41 AM
Can’t display image in jpg format - by El Forum - 03-23-2011, 09:53 AM
Can’t display image in jpg format - by El Forum - 03-23-2011, 01:57 PM
Can’t display image in jpg format - by El Forum - 03-23-2011, 02:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB