1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice

Relative virtual include

Discussion in 'Plesk for Windows - 8.x and Older' started by inCharge.co.uk, May 13, 2004.

  1. inCharge.co.uk

    inCharge.co.uk Guest

    I got an absolute virtual include to work like this:

    <!-- #INCLUDE VIRTUAL="/incharge.co.uk_non_ssl/blah/Include.asp" -->

    where in non-plesk land it would be

    <!-- #INCLUDE VIRTUAL="/blah/Include.asp" -->

    but I couldn't get a relative virtual include to work. e.g.

    <!-- #INCLUDE VIRTUAL="blah/Include.asp" -->

    If the folder containing this script has a virtual folder in it then this SHOULD work. Anyone know how to do it? Obviously I want to avoid customising every site's paths for the site.co.uk_non_ssl bit.

    And before you say to use INCLUDE FILE instead, every one of my customers sites uses the same code installed in one place on the disk and accessed via a virtual folder. So I HAVE to use a virtual include.

    Thanks, Julian