header

(FW >= 1.0)

header - add to http header

Description

int header(string $header_data)

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.  Do not append a \n character as this is done automatically.

Parameters

header_data

string containing specific header to be sent

Return Value

none

Examples

<? 

// redirect to a different page
header("Location: /mypage.cgi");
?>