php forum
php mysql forum
php mysql smarty
 
Topic Options
#291610 - 06/02/01 06:43 PM Advanced SSI
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes

   Advanced SSI to Del.icio.us Add to del.icio.us
  Digg Advanced SSI Digg it
NOTE:

In order to use Server Side Includes, your server must be configured to support them. Check with your system administrator as to whether or not you can use them, and if so, what restrictions may be placed on them. If you are not allowed to do SSI- consider moving to someplace where you can!

WHAT IS SSI?

Server Side Includes (SSI) are commands executed by the server as it parses (chops up and looks for special instructions) the HTML file. SSI can be used to include the value of various server environment variables within your HTML such as the local date and time, to add in a footer or header, or embed an executable script. HTML files which contain SSI are often named *.shtml or *.shtm.

Here is basically what happens when your server handles a request for an SSI document:

The server reads the document and parses it for directives (another word for directions). It then follows the instructions that it finds and merges their results into creating a finished document. The document is then sent to the client browser.

If you are really concerned about presenting dynamic content in a uniform manner across most browsers, this method is preferred over "client-side scripting" such as javascript, where there are great variations in how differnt browsers handle the same coding.

Examples:

- Including a file size on a page
Simple use of SSI to include the size of a file on a page.
<!--#fsize virtual="/cgi/ultimatebb.cgi"-->

- Label
Labels specific files:
<!--#label="" -->

- Executing a Command
To use SSI to execute a command on the document use the following.
<!--#exec cmd="" -->

This will execute the specified command.

- ODBC Connect
This connects to a remote (SQL, Oracle) database.
<!--#odbc connect="datasource,username,password" -->

- Go to Command
Easy goto command (redirect type thing)
<!--#goto="/file.html"-->

- Break line
Terminates HTML document.
<!--#break -->

- Last update
Tells when a file was last updated.
<!--#flastmod virtual="" -->

- ODBC Debug
Debugs an ODBC database
<!--#odbc debug="" -->


Warning:

Improper use of SSI may impair server performance as well as server security. Consult with your server administrator before executing Server Side Includes.

Top


Top Posters Last 30 Days
AllenAyres 13
Gizmo 10
willing 2
S7ARBVCK 2
MattUK 1
Kevin H 1
tackaberry 1
Who's Online
1 Registered (Gizmo), 31 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Noob - need help, or a reality check!
by Gizmo
Yesterday at 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks