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.
精彩评论