是否可以在一个文档中使用多个标题类型?例如:
header("Content-type: image/jpeg");
header('Content-Type: text/html; charset=utf-8');
Run Code Online (Sandbox Code Playgroud)
将整个页面作为text/html ...返回
header('Content-Type: text/html; charset=utf-8');
header("Content-type: image/jpeg");
Run Code Online (Sandbox Code Playgroud)
将整个页面作为图像返回....如何在同一页面上使用这两种类型的内容?我在顶部使用ob_start(),在开头使用ob_end_flush().