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
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
Computer Science Student Articles
Relative File (Virtual) Inclusion - Server Side Includes (SSI)
Published: 23rd Mar 2007
Revised: 24th Mar 2007
<!--#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" -->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)


