Subdomain needs Information from Domain

Discussion in 'PHP' started by caylean, Sep 30, 2012.

  1. #1
    Hello together,
    I am about to start a project and most of it is now running. Only some small problems are left and i do not know how to solve.

    On http://www.domain.tld is a Script running that generates with
    <a href="<?= $CATLINK[14] ?>">Categorie 14 <?= $CAT_COUNT[14] ?> Entries</a>
    PHP:
    the Link for Category 14 and also the amount of Entries to that Category.

    Now i want to generate the same piece on the http://sub.domain.tld/ (Same Domain, just a Sub)

    Is there any 'short' way to get the same Information Shown here? For me it just sounds i would have to tell that he should go ../ or i give the full path.
    But how to do so?

    Does somebody has an idea?

    Greetings
    Sascha
     
    caylean, Sep 30, 2012 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    Normaly you could use the includes from ../ but i'm not shure what you are using for kind of scripting.
     
    EricBruggema, Sep 30, 2012 IP
  3. caylean

    caylean Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It looks all in all damn complicated at all *laughs*
    How this ../ incluce would be function all in all, because there i don't even know how it would be done.

    <a href="<?= ../$CATLINK[14] ?>">Categorie 14 <?= ../$CAT_COUNT[14] ?> Entries</a>That will be not the right way after i learned that eben a simple / after an URL is much more than just a simple / :eek:
    How would i explain the php script to check in an other folder/domain.

    Kind Regards
     
    caylean, Oct 2, 2012 IP