I’m using WP-MINIFY plugin on my WordPress blog but because of my server’s security configurations, fpassthru() function is disable. So, i have to find an alternative way, so i can edit plugin.
I’m getting this error on minified files :
Warning: fpassthru() has been disabled for security reasons in /home/blablabla/public_html/wp-content/plugins/wp-minify/min/lib/Minify/Cache/File.php on line 84
This is the function which using fpassthru :
/**
* Send the cached content to output
*
* @param string $id cache id (e.g. a filename)
*/
public function display($id)
{
if ($this->_locking) {
$fp = fopen($this->_path . '/' . $id, 'rb');
flock($fp, LOCK_SH);
fpassthru($fp);
flock($fp, LOCK_UN);
fclose($fp);
} else {
readfile($this->_path . '/' . $id);
}
}
Do you have any idea?
You could use: