PHP readfile for force downloading files and images

Posted by jiexi on Stack Overflow See other posts from Stack Overflow or by jiexi
Published on 2010-04-08T00:28:55Z Indexed on 2010/04/08 0:33 UTC
Read the original article Hit count: 499

Filed under:
|
|
|
|

I want to send files through php using readfile()

What i've noticed is that readfile forces a download, but what if i want to show an image in the browser and not force a download?

Would readfile still force download even if the file is an image?

If it does, is there a solution so i can use tags with it when the file is an image?

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about readfile