大家好我试着打电话给网址并从中获取一些json,这是网址
control
你可以帮帮我吗?
答案 0 :(得分:0)
看起来像这样:
$opts = [ 'http' => [
'header' => [ /* what headers you want */ ],
'method' => 'GET'
];
$context = stream_context_create($opts);
$content = file_get_contents("URL", false, $context);