Home  Contents

cgi:dofile

Httpd/CGI Core4 Lua Event System

SYNOPSIS

cgi:dofile(filename)

DESCRIPTION

Processes the passed file as an include into the current request. Any cgi output the processing of the file generates is concatenated to the end of the output generated so far. When the processing of the included file is complete, processing continues at the point where it left of in the calling file.

It is possible to include any file type. The server detects the file type just as with a top level request and runs any scripting in the file as needed. Nested scripts get an updated cgi structure that informs about the nesting level.

SEE ALSO