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


Recent Posts