Blog Search

Latest Posts

We are now trading as a Limited company

Recent Work: Digital Marketing Material and Website Re-Designs

We are now VAT Registered

Affordable Web Hosting and Domain Name Registration

New Acuras Logo Coming Soon...

Barclaycard ePDQ CPI Integrations

HSBC XML API / CPI E-commerce Integrations

Photoshop to Valid XHTML/CSS Coding Service

Recommended Open Source Invoicing System

Reasons Businesses should Embrace the Web

Blog Archive

Complete Blog Archive

Browse by Subject

AJAX
Apache
CMS
CSS
HTML
Java
JavaScript
Links
Linux
Mac
MySQL
Pascal
PHP
postgreSQL
RSS
Ruby
SEO
Web Dev News
Windows
XML

Other Resources

Matt's Web Development Blog

Computer Science Student Articles

Affiliate Program Articles

Relative File (Virtual) Inclusion - Server Side Includes (SSI)

This post expands upon the post made a while back on Server Side Includes (SSI) and .shtml Pages. I was recently tinkering with SSI and was attempting to include an HTML file located in the parent directory of a certain SHTML file. Using <!--#include file="../file.html"--> does not work for this. The following code which uses the "virtual" argument must be used instead:

<!--#include virtual="../file.html" -->

The virtual argument can also be used in any situation where the file you are including is located in a position requiring an address starting at the server root.

<!--#include virtual="/directory/included.html" -->

Subscribe to RSS Feed Bookmark and Share

Related Links

Related Articles / Posts

Barclaycard ePDQ CPI Integrations (27/05/2009)

HSBC XML API / CPI E-commerce Integrations (02/04/2009)

Controlling PHP Register Globals Using .htaccess File (04/03/2008)

Relative File (Virtual) Inclusion - Server Side Includes (SSI) (23/03/2007)

Apache: Running XAMPP Server Software for Testing PHP and MySQL (14/08/2006)

 
Acuras Web Development Paje House 164 West Wycombe Road High Wycombe HP12 3AE United Kingdom 08712 887 565
Tel: 08712 887 565
Fax: 08712 887 566
Email: info@acuras.co.uk
Skype: acuras_web
Paje House
164 West Wycombe Road
High Wycombe
Buckinghamshire
HP12 3AE