#include <stdio.h>
#include <cgi/cgi.h>
Functions | |
| void | ob_enable (struct s_cgi_context *ctx) |
| Enable output buffering. | |
| void | ob_end_flush (struct s_cgi_context *ctx) |
| Disable output buffering, flush contents. | |
| void | ob_end_discard (struct s_cgi_context *ctx) |
| Disable output buffering, discard contents. | |
With output buffering enabled you can start data output wherever you want in the script. Data won't be actually sent until you disable output buffering, so you can for example output something, and then set cookie or change some HTTP header.
| void ob_enable | ( | t_cgi_context * | ctx | ) |
Enable output buffering.
Enables output buffering for given CGI context.
| ctx | pointer to existing CGI context (t_cgi_context *). |
| void ob_end_discard | ( | t_cgi_context * | ctx | ) |
Disable output buffering, discard contents.
Disables output buffering and clears contents of the output buffer.
| ctx | pointer to existing CGI context (t_cgi_context *). |
| void ob_end_flush | ( | t_cgi_context * | ctx | ) |
Disable output buffering, flush contents.
Disables output buffering and flush contents of the output buffer.
| ctx | pointer to existing CGI context (t_cgi_context *). |
1.5.5