You are here

How to write a CGI program for my Web Page?

Visit the following links:
https://intraweb.hku.hk/local/its/course/cgi/cgi.html
https://intraweb.hku.hk/local/its/training/imap_cgi_frame/

Where can I find some sample cgi programs to run on web.hku.hk for testing?
Sample cgi programs can be found at https://intraweb.hku.hk/local/its/training/imap_cgi_frame/
Just follow the exercises and place the cgi programs in /public_html/cgi-bin

Where do I place the cgi programs?
For the web.hku.hk server, place them in the directory ~/public_html/cgi-bin

How can I make a cgi program secure (not readable by others)?
You can declare a group called "nobody", and set the file mode of this cgi file to be readable by group.

What is Server Side Includes (SSI)?
A server-side include is a variable value (for example, a file "Last modified" date) that a server can include in an HTML file before it sends it to the requestor.
Visit the following links:
http://www.dionysia.org/software/lastupdated/ssi-method.html

Service Category: