info home general windows unix linux debian mac os apache nginx iphone

Recent Articles

How to rename multiple files in Unix or Linux

Convert docx to doc in Mac OS X Snow Leopard or Leopard

HISTORY shell variable management in Unix/Linux

How to eject CD/DVD from your MacBook or iMac

Play Prince of Persia on Ubuntu Linux using DOSBox

Tags

SSI Includes

Tags: ssi, apache, cgi

How to embed CGI scripts in HTML files

In order to embed CGI scripts, first find if your web hosting company supports Server Side Include (SSI). Call or email your tech support to find this. [If you're hosting on Bluehost, yes they support SSI]

Testing the SSI include

Lets create a file called ssi.html that embeds a Perl script date.pl. This Perl script outputs the current date and time when executed.

Demo

Check out the working demo here.

Last Update: 2007