您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php header函数使用实例代码_PHP教程

2024/4/1 15:30:38发布17次查看
header(content-transfer-encoding: binary);// load the file to send:readfile(example.zip);// disable caching of the current document:header(cache-control: no-cache, no-store, max-age=0, must-revalidate);header(expires: mon, 26 jul 1997 05:00:00 gmt);// date in the pastheader(pragma: no-cache);// set content type:header(content-type: text/html; charset=iso-8859-1);header(content-type: text/html; charset=utf-8);header(content-type: text/plain);// plain text fileheader(content-type: image/jpeg);// jpg pictureheader(content-type: application/zip);// zip fileheader(content-type: application/pdf);// pdf fileheader(content-type: audio/mpeg);// audio mpeg (mp3,…) fileheader(content-type: application/x-shockwave-flash);// flash animation// show sign in boxheader(http/1.1 401 unauthorized);header(www-authenticate: basic realm=top secret);print text that will be displayed if the user hits cancel or ;print enters wrong login data;?>
http://www.bkjia.com/phpjc/486126.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/486126.htmltecharticle?php /*** function: php header() examples (php) ** desc: some examples on how to use the header() function of phpyou find a detailed tutorial at expertsrt.com (english) or at ffm.j...
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product