This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:header [2017/04/11 10:06] jeff |
uphp:functions:header [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 7: | Line 7: | ||
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | < | + | <span style=" |
- | <span style=" | + | |
- | </ | + | |
- | [[header]] ( | + | |
- | < | + | |
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
- | </ | + | </ |
- | </ | + | |
This will add a header line to the HTTP response. Make sure that no data has been sent prior to calling [[header]] or else the function will fail. This means the opening tag <? has to appear at the very beginning of the file, if even a single space precedes it, the header function won't work. | This will add a header line to the HTTP response. Make sure that no data has been sent prior to calling [[header]] or else the function will fail. This means the opening tag <? has to appear at the very beginning of the file, if even a single space precedes it, the header function won't work. | ||
Line 23: | Line 18: | ||
====Parameter==== | ====Parameter==== | ||
- | < | + | < |
Do not append a linefeed character (\n) as this is done automatically | Do not append a linefeed character (\n) as this is done automatically | ||
- | ====Return | + | ====Return |
None | None |