Output an Image in PHP

前端 未结 12 1212
萌比男神i
萌比男神i 2020-11-22 14:33

I have an image $file ( eg ../image.jpg )

which has a mime type $type

How can I output it to the browser?

12条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 15:05

    That's the short version. There's a few extra little things you can do to make things nicer, but that'll work for you.

提交回复
热议问题