[英]file_get_contents dont work?
Server: PHP 5.3服务器: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:在
http://subdomain.domain.com/Api/id
我有这个:
$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 when I copy the address http://subdomain.domain.com/Api/id and paste in the address bar I get the response that I want!磨损的是当我复制地址http://subdomain.domain.com/Api/id并粘贴到地址栏中时,我得到了我想要的响应!
Verify in your php.ini if "allow_url_fopen" is On, if isn't change it to On.在您的 php.ini 中验证“allow_url_fopen”是否为 On,如果未将其更改为 On。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.