Blog Search

Latest Posts

New SEO and Link Building Services

Firefox 3 Web Browser Launched

New Educational Media Website Launch

Trevor Laurency Fitness Website Launch

Recent Recommended Links - April 2008

Web Apps on Your Desktop with Mozilla Prism

Recent Recommended Links - March 2008

Ubuntu Linux - Persistent sudo root

Controlling PHP Register Globals Using .htaccess File

Javascript Essentials - Date Pickers (Calendars)

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 Digg! Add to Google Add to My Yahoo!

Related Links

Related Articles / Posts

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)

HTML: Server Side Includes (SSI) and .shtml Pages (01/05/2006)

LAMP: Linux, Apache, MySQL and PHP - The Way Forward! (22/03/2006)

 
Acuras Web Development 21 Hylton Road Sands High Wycombe HP124BZ United Kingdom 08712 887 565
Tel: 08712 887 565
Fax: 08712 887 566
Email: info@acuras.co.uk
Skype: acuras_web
21 Hylton Road
High Wycombe
Buckinghamshire
HP12 4BZ
United Kingdom
Feeds / Content
News
Latest Links
Blog - PHP / CSS