User Tools

Site Tools


uphp:functions:header

Differences

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

Link to this comparison view

Next revision
Previous revision
uphp:functions:header [2017/04/11 10:03]
jeff created
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%"> +
-</html> +
-[[header]] ( +
-<html> +
 <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.
  
 ====Parameter==== ====Parameter====
  
-<html><b><span style="color:blue">$header_data<span style="color:black"></b></html>:  <html><b><span style="color:green">String<span style="color:black"></b></html> containing the specific header to be sent+<html><b><span style="color:blue">$header_data<span style="color:black"></b>:  <b><span style="color:green">String<span style="color:black"></b> containing the specific header to be sent</html>
  
 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.1491905000.txt.gz · Last modified: 2021/09/13 05:56 (external edit)