开发者

file_get_contents dont work?

开发者 https://www.devze.com 2023-03-19 05:18 出处:网络
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:

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

精彩评论

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

关注公众号