Setting the web content type¶
web_content_type() |
Set the web content type |
SYNTAX
web_content_type(string)
Set the web content type to the specified string, which must be a valid content type. This function must be called before any print or put statement is executed.
The default content type is “text/html”.
The content type is output by the put_web_header() function.
The function returns 0 (OK), or a negative value to indicate an error. The only possible error for this function is WWW_ERR_NOT_IN_HEADER (a print or put statement has been executed).
RELATED TOPICS |