Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.


    • CommentAuthorphilips
    • CommentTimeDec 13th 2006
     
    How do I use includes in my pages residing in the subdomain of my main site?

    the includes work fine on the main domain, but I cannot figure out how to get includes to work for the subdomain pages (i use plesk for my host)


    am I missing something in my understanding of what works with subdomains?
    • CommentAuthorjustnajm
    • CommentTimeDec 13th 2006
     
    Try to use the full path of the include files:

    for example if you have your include folder or files on the root directory of your main domain then this will work for subdomain too:

    include 'root/includes/header.php';

    or can use the full path with the address:

    include ("http://domain.com/includes/header.php");

    (caution there should not be redirect script set.)


    all in one is:

    include($_SERVER["DOCUMENT_ROOT"]."/includes/header.php");