<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

织梦问答模块打开时显示“service.dedecms.com”的解决方法

时间:2020-12-10

织梦问答模块打开时显示“service.dedecms.com”的解决方法

  问答模块无论是新建设的织梦网站程序,还是已经使用过一段时间的织梦网站程序,在打开织梦问答模块时如果出现“service.dedecms.com”的字样。这个时候要解决就需要把/ask/data/scores.inc.php文件里面的函数 function transport(){} 函数内的所有内容前后加/**/ 注释掉,大约在92行。这样问题就被解决了。

  如下面红色代码所示:

 function transport()
 {   /*  //注释掉这段内容
  global $cfg_basehost;
  $path = $cfg_basehost.'/'.APPNAME."/?ct=index&ac=scores";
  $host = preg_replace('#http://#','',$cfg_basehost);
  $str = "";
  $fp = fsockopen($host,80,$errno,$errstr,30);
  if(!$fp)
  {
   die("service.dedecms.com".$errstr.$errno);
  }else{
   fputs($fp, "POST $path HTTP/1.1\r\n");
   fputs($fp, "Host: $host\r\n");
   fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n");
   fputs($fp, "Content-length: ".strlen($str)."\r\n");
   fputs($fp, "Connection: close\r\n\r\n");
   fputs($fp, $str."\r\n\r\n");
   fclose($fp);
  } */
 }

当然删除上面注释掉的那部分代码也可以解决织梦问答页面出现service.dedecms.com打不开的状况!

0
首页
案例
关于
联系