how to link from one subdomain to the php file of an another subdomain?

Discussion in 'PHP' started by nevret2, Apr 17, 2008.

  1. #1
    hello,

    i have 2 subdomains

    domain1.com
    domain2.com

    in domain 1 i have a directory with php files etc in it

    i have a index.php in domain 1 and its using all those php files in same domain 1


    now in domain 2 i dont want to upload those php files again

    the index.php in domain 2 need to see the php files of domain 1


    how can i do this?

    i have tried this:

    /public_html/domain1/

    and put this in index.php in domain2, but it makes it: www.domain1.com//public_html/domain1/

    how can i do this? with mod write? how?

    thnx,
     
    nevret2, Apr 17, 2008 IP
  2. nevret2

    nevret2 Peon

    Messages:
    518
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    can someone please help me with this please
     
    nevret2, Apr 17, 2008 IP