Great Templates

FEATURED WEB TEMPLATES

Amazon Books

Learn PHP

PHP Training
Zend Cert Training Zend Certified Engineer Zend PHP Pro

Server Side Include SSI Tips: How To Write Basic Server Side Include (SSI) Directive Within My HTML


SSI is a function of the Web Server, so the processing of command is done on the Server itself !.
This will appear just like an HTML operation.

#include file="" directive will include the specified file with the current one.
eg :

A SSI directive



Will First show the message "A SSI directive" which is in the file(test.shtml);
then it will show the "wellcome.html".

Note : A HTML with SSI directives should have an ".shtml" file extension. And SSI directives must be specified within comment tags (viz, "").

To execute an command/Program anywere on the server and show the output on the browser use the #exec cmd="".
eg :-

This will execute the "dir" internal command (LINUX/DOS) and display all filenames in the current directory in the browser.
To Execute a CGI from within your HTML use #exec cgi=""
eg :-


This will execute the "usrinput.cgi" CGI file !.

 

 

 


Learn PHP | Zend Certified Engineer | Zend PHP Pro | PHP Web Apps | Web Hosting Service | Low Cost Domain Names | Great Templates | Great Books | Testimonials | Tech.Articles | TOS | AUS | Home | Linux Apache MySQL PHP