0

我在一个免费的 Web 托管站点上有我的 PHP 文件,下面的代码突然停止工作并出现错误:

$data = file_get_contents("http://eqafe.com/inventories/$name/inventory_by_slug.json") or die(print_r(error_get_last()));

错误输出:

Array ( [type] => 8 [message] => Undefined offset: 6 [file] => /usr/lib/php/head.php [line] => 90 ) 1

我怎样才能解决这个问题?

4

0 回答 0