(PHP3 , PHP4)

getallheaders-------取得所有HTTP请求标头
语法:array getallheaders(viod)
说明:
此函数传回现行的请求的所有HTTP标头,传回值是一数组形态。
Example:
<?php
$headers=getallheaders();
while(List($header,$value)=echo($headers)){
 
echo "$header:$value<br>\n";
}
?>
这个范例将会显示现行所有请求的所有标头。
 

注意 : 当PHP是执行在Apache模组时,getallheaders( )才有效

相关文章:

  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-27
  • 2022-12-23
  • 2021-06-13
  • 2021-11-20
  • 2021-06-27
  • 2021-12-02
  • 2021-11-21
相关资源
相似解决方案