Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已答复] SS 7.0 godaddy 国外空间 采集器用不了

[复制链接]
sghuan 发表于 2010-3-9 10:38:37 | 显示全部楼层 |阅读模式
我的是ss7.0  在godaddy 空间 采集用不了
       一采集就完成  怎么回事啊
jiekii 发表于 2010-3-18 23:51:19 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

信宁军 发表于 2010-3-18 23:55:03 | 显示全部楼层
本帖最后由 信宁军 于 2010-3-18 23:56 编辑

一采集就完成,常见症状而已,代码本身存在的问题,
这与国外空间无任何关系,论坛早有解决方案,搜一下遍地都是答案


在用SupeSite7采集信息的过程中会出现调试成功,但刚一采集就结束,采集不到任何内容的问题,现给出以下修改方案:
在supesite根目录下进入 admin 文件夹,找到admin_robots.php文件。
找到geturlfile函数:
  1. function geturlfile($url, $encode=1) {
  2.         global $thevalue, $_SCONFIG;

  3.         $text = '';
  4.         if(!empty($url)) {
  5.                 if(function_exists('file_get_contents')) {
  6.                         @$text = file_get_contents($url);
  7.                 } else {
  8.                         @$carr = file($url);
  9.                         if(!empty($carr) && is_array($carr)) {
  10.                                 $text = implode('',$carr);
  11.                         }
  12.                 }
  13.         }
  14.         $text = str_replace('·', '', $text);
  15.         if(!empty($thevalue['encode']) && $encode == 1) {
  16.                 if(function_exists('iconv')) {
  17.                         $text = iconv($thevalue['encode'], $_SCONFIG['charset'], $text);
  18.                 } else {
  19.                         $text = encodeconvert($thevalue['encode'], $text);
  20.                 }
  21.         }
  22.         return $text;
  23. }
复制代码
将此函数替换为:
  1. function geturlfile($url, $encode=1) {
  2.         global $thevalue, $_SCONFIG;

  3.         $text = '';
  4.         if(!empty($url)) {
  5.                 if(function_exists('file_get_contents')) {
  6.                         @$text = file_get_contents($url);
  7.                 } else {
  8.                         @$carr = file($url);
  9.                         if(!empty($carr) && is_array($carr)) {
  10.                                 $text = implode('',$carr);
  11.                         }
  12.                 }
  13.         }
  14.         
  15.         $text = str_replace('·', '', $text);
  16.         if(function_exists('iconv')) {
  17.                 $text = iconv($thevalue['encode'], $_SCONFIG['charset'].'//IGNORE', $text);
  18.         } else {
  19.                 $text = encodeconvert($thevalue['encode'], $text);
  20.         }
  21.         return $text;
  22. }
复制代码

评分

1

查看全部评分

回复

使用道具 举报

 楼主| sghuan 发表于 2010-3-20 10:19:44 | 显示全部楼层
试了 还是不行。。。
    问题是 之前在国内的空间 没问题 就是移动了之后就用不了。。
会不会是数据表等 没有导入完整啊?
      应该去查那些表呢?
回复

使用道具 举报

信宁军 发表于 2010-3-20 11:49:18 | 显示全部楼层
有人说国外空间就是用不了,移回国内就又能用了
回复

使用道具 举报

挖土NET 发表于 2010-4-9 16:38:34 | 显示全部楼层
修改php5.ini试试
allow_url_fopen = off

allow_url_fopen = On
回复

使用道具 举报

hrf2009 发表于 2010-4-12 09:27:23 | 显示全部楼层
it is related to php.ini setting
回复

使用道具 举报

天下一人 发表于 2010-4-30 11:15:12 | 显示全部楼层
修改php5.ini试试
allow_url_fopen = off

allow_url_fopen = On


这个原来就是ON
就是不行,真搞不懂啊!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-2 10:02 , Processed in 0.098561 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表