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


  • 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.

Recent Posts

Recent Comments

Categories