Archive

Posts Tagged ‘timthumb’

Fix disabled readfile function in PHP

June 1st, 2009

Recently i had a problem with my blog. Actually the problem was on the server sever side where my blog hosted. I use a theme that require or use timthumb plugin. Maybe you already knew, i used it to generate and display thumbnail image, pretty good. The problem is the timthumb plugin use readfile function to read the image file and i dont know for sure why, my hosting service administrator just listed it as a disabled PHP function.

I do the ritual, search for a solution, and the only alternative i found is to change the the readfile function. There are some function alternative i think, combination between fopen and fpassthru worked on some server (it works on my private/offline server) but file_get_contents function works best. Read more…

Shared Things , ,