[英]Php file_get_contents and curl_exec dont work with external files
[英]file_get_contents dont work?
服务器: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并粘贴到地址栏中时,我得到了我想要的响应!
在您的 php.ini 中验证“allow_url_fopen”是否为 On,如果未将其更改为 On。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.