毫秒时间戳
(int)(microtime(true)*1000); //毫秒时间戳file_get_contents 模拟 post
$en = '{"q": "","source": "","target": "","format": "","api_key": ""}';
$options = array(
'http'=>array(
'method'=>"POST",
'header'=>"Content-Type: application/json",
'content' => $en
)
);
$context = stream_context_create($options);
$data = file_get_contents("https://xxxxx.xxxxx/xxxxx", false, $context);可将数组输出到文件,导入后直接可执行
$output = var_export($data, true);
file_put_contents("array.txt", $output);
Array
(
[name] => Qwen3-8B-Q4_K_M.gguf
[model] => Qwen3-8B-Q4_K_M.gguf
[size] => 5021827072
[meta] => Array
(
[vocab_type] => 2
[n_vocab] => 151936
[n_ctx_train] => 40960
[families] => Array
(
[0] => qwen
[1] => transformer
)
)
)
