PHP is not limited to outputting html. PHP can output images, pdf, javascript files, etc. Browsers determine what type of content is by analyzing the headers sent. In this tutorial I will present you with some examples of how to send headers. To send PHP header use the function header(). You must call this function before any output. Use the function headers_sent() to check whether the headers have been sent and output started. 继续阅读 php常用的header:301,302, Redirects, 404, Javascript, Download, Authentication dialog Headers
wangyouworld 的所有文章
photo by Alex Robertson
有三样东西有助于缓解生命的辛劳:希望、睡眠和笑。 —— 康德
引自:喷嚏意图 http://www.dapenti.com/blog/more.asp?name=tupian&id=78749
有些时候,正好在工作或休闲的途中,我的灵魂被惯有的坏脾气所淹没,我感到疲惫,不是对工作或者休闲疲惫,而是对自己感到疲惫。 ——佩索阿
引自:喷嚏意图 http://www.dapenti.com/blog/more.asp?name=tupian&id=78750
photo by Christian Coigny
等待有把握时再去做一件事,往往意味着永远的等待。
引自:喷嚏意图 http://www.dapenti.com/blog/more.asp?name=tupian&id=64797
在工作的时候创造的是意义,在休闲的时候创造的是意思,当意义与意思能平衡的时候,这就是生命的意境。 ——于丹
引自:喷嚏意图 http://www.dapenti.com/blog/more.asp?name=tupian&id=64856
与老人沟通不要忘了他的自尊,与男人沟通不要忘了他的面子,与女人沟通不要忘了她的情绪,与上级沟通不要忘了他的尊严,与年轻人沟通不要忘了他的直接,与儿童沟通不要忘了他的天真。
引自:喷嚏意图 http://www.dapenti.com/blog/more.asp?name=tupian&id=64686