I'm using <a href="http://wordpress.org/extend/plugins/wp-minify/" rel="nofollow">WP-MINIFY</a> plugin on my Wordpress blog but because of my server's security configurations, <a href="http://php.net/manual/en/function.fpassthru.php" rel="nofollow">fpassthru()</a> function is disable. So, i have to find an alternative way, so i can edit plugin.
I'm getting this error on minified files :
<br />
<b>Warning</b>: fpassthru() has been disabled for security reasons in <b>/home/blablabla/public_html/wp-content/plugins/wp-minify/min/lib/Minify/Cache/File.php</b> on line <b>84</b><br />
This is the function which using fpassthru :
Do you have any idea?
I'm getting this error on minified files :
<br />
<b>Warning</b>: fpassthru() has been disabled for security reasons in <b>/home/blablabla/public_html/wp-content/plugins/wp-minify/min/lib/Minify/Cache/File.php</b> on line <b>84</b><br />
This is the function which using fpassthru :
Code:
/**
* 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?