Question: cgi programs can be written in which languages
Answer: by writing them in languages such as C or C++ , rather than interpreted or compiled - on - the - fly languages such as Perl or PHP , or by implementing the page generating software as a custom webserver module .