User Tools

Site Tools


uphp:functions:header

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:header [2017/05/08 14:27]
jeff
uphp:functions:header [2021/09/13 05:57] (current)
Line 7: Line 7:
 ====Description==== ====Description====
  
-<well size="sm"> +<well size="sm"><html>
-<html>+
 <span style="font-size:125%">header (  <span style="font-size:125%">header ( 
 <span style="color:green">string <span style="color:green">string
 <span style="color:blue">$header_data <span style="color:blue">$header_data
 <span style="color:black">) <span style="color:black">)
-</html> +</html></well>
-</well>+
  
 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 24: Line 22:
 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 Value====+====Return Values====
  
 None None
uphp/functions/header.1494253673.txt.gz · Last modified: 2021/09/13 05:56 (external edit)