header (PHP 3, PHP 4 )header -- Send a raw HTTP header Description void header ( string string [, bool replace [, int http_response_code]]) header() is used to send raw HTTP headers. See the HTTP/1.1 specification for more information on HTTP headers. 楼主可以看看手册里面的详细解释
(PHP 3, PHP 4 )header -- Send a raw HTTP header
Description
void header ( string string [, bool replace [, int http_response_code]])
header() is used to send raw HTTP headers. See the HTTP/1.1 specification for more information on HTTP headers.
楼主可以看看手册里面的详细解释
用echo "<script>location.href='www.a.com/a.wmv';</script>";
跟这header有区别
转向非HTML文档不要使用header
echo前面需要用header设置文件属性,默认的text/plain不能正常打开wmv