[eluser]Arun Joshi[/eluser]
I have an album/photos section in my CI site. So I want to hide the real image path from the users. How to implement this in CI?
This was my try. I have a function 'photo' in managephotos controller. When I call this, it prints the url , but not the image
Code:
function photo()
{
$thumb = 'albums/5/3/Tulips2.jpg';
header('Content-type: image/jpeg');
echo file_get_contents($thumb);
}
When I called this function it shows "http://localhost/tbf/managephotos/photo" in the page.
Thanks
Arun