Php experts or anybody :)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pipecrew
    Master of Gfy.com
    • Feb 2002
    • 14888

    #1

    Php experts or anybody :)

    Here is the setup of my directory structure



    site1.com
    site2.com
    site3.com


    I have a file that is generated in site1 and I want to display it using an include file statement in site 2


    Any Ideas?

    I figured it would be

    include file "../site1.com/index2.html"

    just doesnt work




    (edited to fix a typo)
    Last edited by Pipecrew; 07-06-2002, 05:57 PM.
  • chodadog
    Confirmed User
    • Apr 2002
    • 9736

    #2
    Not sure if that was a typo or not, but shouldn't that be ../site1.com/index2.html ?
    26 + 6 = 1

    Comment

    • kmanrox
      aka K-Man
      • Oct 2001
      • 29295

      #3
      i need a php guy to install autogallery sql, pls icq me 1337988
      Crypto HODLr
      Crypto mining
      Angel investor

      Comment

      • Sly_RJ
        Live Hard - Die Hard
        • Feb 2002
        • 17042

        #4
        You're going to need to call the include file by using the absolute path, not the relative path. I'm also assuming that these are on the same server.
        PHAT SERVERS - Quality dedicated hosting at a quality price!
        sly AT phatservers DOT com - 147479144

        Comment

        • Pipecrew
          Master of Gfy.com
          • Feb 2002
          • 14888

          #5
          Originally posted by Sly_RJ
          You're going to need to call the include file by using the absolute path, not the relative path. I'm also assuming that these are on the same server.
          yes they are, hmm guess i can give it a try! its just they are both at the same position, it would be easier if site2 was included in site1, but i am just not sure how to call backwards, if that makes anysense?

          Comment

          • Pipecrew
            Master of Gfy.com
            • Feb 2002
            • 14888

            #6
            Originally posted by kmanrox
            i need a php guy to install autogallery sql, pls icq me 1337988
            Hey Mike503 can install it for you, he has personally edited my version and a few other people to suit our needs for us

            Comment

            • Sly_RJ
              Live Hard - Die Hard
              • Feb 2002
              • 17042

              #7
              Originally posted by Pipecrew


              yes they are, hmm guess i can give it a try! its just they are both at the same position, it would be easier if site2 was included in site1, but i am just not sure how to call backwards, if that makes anysense?
              147479144
              Hit me up.
              PHAT SERVERS - Quality dedicated hosting at a quality price!
              sly AT phatservers DOT com - 147479144

              Comment

              • RK
                Confirmed User
                • Aug 2001
                • 868

                #8
                Originally posted by Sly_RJ
                You're going to need to call the include file by using the absolute path
                and make sure the permissions and http server settings will allow it.

                if it does not work, msg me and I'll take a look should take no more than a minute
                Does anyone look down here?

                Comment

                • foe
                  Confirmed User
                  • May 2002
                  • 5246

                  #9
                  Originally posted by Sly_RJ
                  You're going to need to call the include file by using the absolute path, not the relative path. I'm also assuming that these are on the same server.
                  You can call an include by relative path should not make any diffrence

                  Comment

                  • foe
                    Confirmed User
                    • May 2002
                    • 5246

                    #10
                    put a ; at the end of the line

                    Comment

                    • foe
                      Confirmed User
                      • May 2002
                      • 5246

                      #11
                      Originally posted by kmanrox
                      i need a php guy to install autogallery sql, pls icq me 1337988
                      I can install it for you no prob, takes a second

                      Comment

                      • Sly_RJ
                        Live Hard - Die Hard
                        • Feb 2002
                        • 17042

                        #12
                        Originally posted by foe


                        You can call an include by relative path should not make any diffrence
                        Hmm, well it's working since he changed it.
                        PHAT SERVERS - Quality dedicated hosting at a quality price!
                        sly AT phatservers DOT com - 147479144

                        Comment

                        • foe
                          Confirmed User
                          • May 2002
                          • 5246

                          #13
                          Originally posted by Sly_RJ
                          You're going to need to call the include file by using the absolute path, not the relative path. I'm also assuming that these are on the same server.
                          This is not necessary but if you want it to be the absolute path the easy way to find it out is goto the directory of site two and type pwd in shell or telnet

                          Comment

                          Working...