Welcome Guest, Not a member yet? Register   Sign In
Hide actual path of an image.
#1

[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


Messages In This Thread
Hide actual path of an image. - by El Forum - 09-21-2010, 02:55 AM
Hide actual path of an image. - by El Forum - 09-21-2010, 03:20 AM
Hide actual path of an image. - by El Forum - 09-21-2010, 06:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB