METS BLOG

METS BLOG

Yii serve request image with Action

I was wondering if its possible to serve images with PHP and also not to use too much resources, turns out it can and its quite easy. So I decided to put my uploaded images under protected folder. Anyway here it is.

P.S this works only on Linux server/machine

Controller Action

View


One response to “Yii serve request image with Action”

  1. Way cool! Sοme ехtremely valid points!
    I appreciate you writinɡ this article plus the rest of the sіte іs also really goоd.

Leave a Reply

Your email address will not be published. Required fields are marked *