簡體   English   中英

file_get_contents 不起作用?

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

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM