我正在使用位置管理器处理Android Studio应用程序。
我的代码是:
<?php
$str = file_get_contents('https://externurl');
$json = json_decode($str, true); //
echo '<pre>' . print_r($json, true) . '</pre>';
?>
我正在尝试使用Android 4.4.2和7.1.2
的两款智能手机在4.4.2,行
[10-Jun-2018 18:12:48 America/New_York] PHP Warning: file_get_contents(https://url): failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized
in /home/be/public_html/testtest/testing3.php on line 2
在未注释但在7.1.2
上崩溃我的应用程序时有效当然有充分的理由,但我没有看到它。可能有人帮助我?
当然,这段代码还没有完成,所以它看起来有点难看......