ianc4ever wrote:Why do we need to use readfile() and send header info whenever the imgsrc way doesnt need image headers to be sent?
Who ever said that using an <IMG> HTML tag doesn't require the same image headers as displaying the image from a PHP script?
Whenever your browser encounters an <img> tag, it makes a separate request to download the image referenced in the "src" attribute. This separate request has a separate set of headers (e.g. "Content-Type: image/jpeg") since it's a separate request.
ianc4ever wrote:What r the benefits of NOT using <imgsrc> method to display images?
How else would you display an image, then, if not using an <img> HTML tag?