header.php<?php$headers = "content-type: text/html; charset=UTF-8\r\n".
"Server: Funky/1.0\r\n".
"Set-Cookie: foo=bar\r\n".
"Set-Cookie: baz=quux\r\n".
"Folded: works\r\n\ttoo\r\n";
print_r(http_parse_headers($headers));?>为何找不到 http_parse_headers() 这个函数?? 我看PHP文档中有这个函数的介绍啊!
"Server: Funky/1.0\r\n".
"Set-Cookie: foo=bar\r\n".
"Set-Cookie: baz=quux\r\n".
"Folded: works\r\n\ttoo\r\n";
print_r(http_parse_headers($headers));?>为何找不到 http_parse_headers() 这个函数?? 我看PHP文档中有这个函数的介绍啊!
需要安装
下载地址.
下载以后用pear安装
pear install pecl_http-1.7.0b1.tgz