开发者

file_get_contents dont work?

Server: PHP 5.3

The line in question:

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

In http://subdomain.domain.com/Api/id I have this:

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

and from here it doesn't work

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

I don't get any error, it just doesn't add to queue.

The wear things is wh开发者_运维技巧en I copy the address http://subdomain.domain.com/Api/id and paste in the address bar I get the response that I want!


Verify in your php.ini if "allow_url_fopen" is On, if isn't change it to On.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜