file_get_contents不工作?

时间:2011-07-11 16:36:42

标签: php queue redis file-get-contents

服务器:PHP 5.3

有问题的一行:

file_get_contents(http://subdomain.domain.com/Api/id);

http://subdomain.domain.com/Api/id我有这个:

$newFeeds = new newsFeeds();
$newFeeds->function($newsFeedParseFile); //insertamos a memcachedb

从此处起作用

$redis = cacheFactory::get('redis');    
$redis->addTolist("Info_{1_2_FS}", "InfoRedis");

我没有收到任何错误,它只是没有添加到队列中。

当我复制地址http://subdomain.domain.com/Api/id并粘贴在地址栏中时,我会得到我想要的回复!

1 个答案:

答案 0 :(得分:3)

在php.ini中验证“allow_url_fopen”是否为On,如果没有将其更改为On。

相关问题