我想更改php中的默认下载位置使用头函数我找不到它的参数这是标题的定义
header(string $header, bool $replace = true, int $response_code = 0)
编辑:解决方案的URL将当前页面另存为HTML到服务器
<?php
// Start the buffering //
ob_start();
?>
您的页面内容
<?php
echo '1';
file_put_contents('yourpage.html', ob_get_contents());
?>
你指定了路径,而不是你的page.html,它就起作用了除了更改默认下载位置之外,是否有任何关于标头或其他替代方案的解决方案感谢
解决方案的URL将当前页面另存为HTML到服务器
<?php
// Start the buffering //
ob_start();
?>
您的页面内容
<?php
echo '1';
file_put_contents('yourpage.html', ob_get_contents());
?>
你指定的路径不是yourpage.html,而是