[英]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.