服务器: 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并粘贴到地址栏中时,我得到了我想要的响应!
发布于 2011-07-12 00:41:49
在您的php.ini中验证"allow_url_fopen“是否打开,如果没有,则将其更改为打开。
https://stackoverflow.com/questions/6653427
复制相似问题