I've wondered this before also but currently use;

include($_SERVER["DOCUMENT_ROOT"].'/'.'template.php')

Be interested if there is an easier way!

.:Fran

-----Original Message-----
From: Charles P. Killmer [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2003 14:46
To: php-windows
Subject: [PHP-WIN] Include virtual?


For those familiar with asp does php have something similar to the
include virtual?

 

I don't want to have to use the full system path to include a template
that is at the doc_root of the site.

 

Include_virtual("/template.php"); ??

 

This would include the template.php at the root of the site instead of
the root of the drive.

 

Thanks

Charles Killmer

Windows 2000 Server IIS 5.0 PHP 4.2.3


Internet communications are not secure and therefore the Barclays Group
does not accept legal responsibility for the contents of this message.
Although the Barclays Group operates anti-virus programmes, it does not
accept responsibility for any damage whatsoever that is caused by
viruses being passed.  Any views or opinions presented are solely those
of the author and do not necessarily represent those of the Barclays
Group.  Replies to this email may be monitored by the Barclays Group
for operational or business reasons.


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to