website alias frontend

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Colman

    website alias frontend

    I couldn't think of a concise way to describe this in the Subject!
    Anyways...

    I am creating a PHP/MySQL driven website. I would like to provide
    other users a sort of customized front-end PHP script which they can
    install on their own server which will basically act as an alias for
    my site; that is, when someone goes to WWW.THEIR-SITE.COM they
    actually see and interract with the content on WWW.MY-SITE.COM,
    passing back and forth the same GET, POST, and COOKIE vars (uh...
    that's all I need, right?). I don't just want to forward/redirect
    them to my site; I want the user to use WWW.THEIR-SITE.COM in the URL
    and any links in the page (this front-end script would also contain
    some kind of authentication for "connecting " to my site - but one
    thing at a time!).

    I've tinkered with:
    INCLUDE() - causes problems by using relative paths.
    FILE_GET_CONTEN TS() - see the content well, but can't see GET and POST
    vars.

    Any suggestions for a solution or at least a better set of keywords to
    search the newsgroups? Thanks in advance for any help!
  • Chung Leong

    #2
    Re: website alias frontend

    The solution is called DNS and virtual hosting.

    Uzytkownik "Colman" <colmanNOSPAMFO RME@rominato.co m> napisal w wiadomosci
    news:4accd45d.0 402021335.4d0d3 0ac@posting.goo gle.com...[color=blue]
    > I couldn't think of a concise way to describe this in the Subject!
    > Anyways...
    >
    > I am creating a PHP/MySQL driven website. I would like to provide
    > other users a sort of customized front-end PHP script which they can
    > install on their own server which will basically act as an alias for
    > my site; that is, when someone goes to WWW.THEIR-SITE.COM they
    > actually see and interract with the content on WWW.MY-SITE.COM,
    > passing back and forth the same GET, POST, and COOKIE vars (uh...
    > that's all I need, right?). I don't just want to forward/redirect
    > them to my site; I want the user to use WWW.THEIR-SITE.COM in the URL
    > and any links in the page (this front-end script would also contain
    > some kind of authentication for "connecting " to my site - but one
    > thing at a time!).
    >
    > I've tinkered with:
    > INCLUDE() - causes problems by using relative paths.
    > FILE_GET_CONTEN TS() - see the content well, but can't see GET and POST
    > vars.
    >
    > Any suggestions for a solution or at least a better set of keywords to
    > search the newsgroups? Thanks in advance for any help![/color]


    Comment

    • Jochen Daum

      #3
      Re: website alias frontend

      Hi!

      On 2 Feb 2004 13:35:52 -0800, colmanNOSPAMFOR ME@rominato.com (Colman)
      wrote:
      [color=blue]
      >I couldn't think of a concise way to describe this in the Subject!
      >Anyways...
      >
      >I am creating a PHP/MySQL driven website. I would like to provide
      >other users a sort of customized front-end PHP script which they can
      >install on their own server which will basically act as an alias for
      >my site; that is, when someone goes to WWW.THEIR-SITE.COM they
      >actually see and interract with the content on WWW.MY-SITE.COM,
      >passing back and forth the same GET, POST, and COOKIE vars (uh...
      >that's all I need, right?). I don't just want to forward/redirect
      >them to my site; I want the user to use WWW.THEIR-SITE.COM in the URL
      >and any links in the page (this front-end script would also contain
      >some kind of authentication for "connecting " to my site - but one
      >thing at a time!).
      >
      >I've tinkered with:
      >INCLUDE() - causes problems by using relative paths.
      >FILE_GET_CONTE NTS() - see the content well, but can't see GET and POST
      >vars.
      >
      >Any suggestions for a solution or at least a better set of keywords to
      >search the newsgroups? Thanks in advance for any help![/color]

      Write some kind of proxy with the curl extension or Snoopy on
      Sourceforge.

      HTH, Jochen


      --
      Jochen Daum - CANS Ltd.
      PHP DB Edit Toolkit -- PHP scripts for building
      database editing interfaces.
      Download PHP DB Edit Toolkit for free. PHP DB Edit Toolkit is a set of PHP classes makes the generation of database edit interfaces easier and faster. The main class builds tabular and form views based on a data dictionary and takes over handling of insert/update/delete and user input.

      Comment

      • CountScubula

        #4
        Re: website alias frontend

        my 2 cents:

        if you are trying to host an entire site this way, dude, just use dns, and a
        virtual host, or heck, just add lines in the .conf file:

        ServerName www.my-site.com
        ServerAlias www.thier-site.com
        ServerAlias www.thier-site2.com

        if you are just wanting parts of content, then use file() or do some socket
        stuff.


        --
        Mike Bradley
        http://www.gzentools.com -- free online php tools
        "Colman" <colmanNOSPAMFO RME@rominato.co m> wrote in message
        news:4accd45d.0 402021335.4d0d3 0ac@posting.goo gle.com...[color=blue]
        > I couldn't think of a concise way to describe this in the Subject!
        > Anyways...
        >
        > I am creating a PHP/MySQL driven website. I would like to provide
        > other users a sort of customized front-end PHP script which they can
        > install on their own server which will basically act as an alias for
        > my site; that is, when someone goes to WWW.THEIR-SITE.COM they
        > actually see and interract with the content on WWW.MY-SITE.COM,
        > passing back and forth the same GET, POST, and COOKIE vars (uh...
        > that's all I need, right?). I don't just want to forward/redirect
        > them to my site; I want the user to use WWW.THEIR-SITE.COM in the URL
        > and any links in the page (this front-end script would also contain
        > some kind of authentication for "connecting " to my site - but one
        > thing at a time!).
        >
        > I've tinkered with:
        > INCLUDE() - causes problems by using relative paths.
        > FILE_GET_CONTEN TS() - see the content well, but can't see GET and POST
        > vars.
        >
        > Any suggestions for a solution or at least a better set of keywords to
        > search the newsgroups? Thanks in advance for any help![/color]


        Comment

        • Colman

          #5
          Re: website alias frontend

          Thanks for your responses!


          --1--
          Socket Stuff / Proxy / Curl / Snoopy ... My knowledge is completely
          lacking in these areas. I will try to investigate.


          --2--
          DNS / Virtual hosting ... I think I see where you guys are going with
          this (I'm not entirely knowledgable in that area and will look into
          it), but it sounds like -- and please correct me if I'm wrong -- that
          by going that route I will be unable to (as hinted in my original
          post*) insert a script in between which will handle some
          authentificatio n for the "connection " between MY-SITE and the
          requesting/client THEIR-SITE script and be invisible to the user.
          That is, the site using this front-end script is basically accessing
          only a subset of my site's entire content.

          Therefore, what I would like to have happen is when someone goes to
          WWW.MY-SITE.COM they will have access to everything, but when someone
          goes to WWW.THEIR-SITE.COM, the front-end script at THEIR-SITE makes a
          request of some kind (include()?) from MY-SITE in a way which would
          identify itself as THEIR-SITE by providing the proper authentication
          and then MY-SITE would return the appropriate content.

          I Hope I'm making sense. Perhaps DNS/Virtual hosting can do this for
          me? I certainly wouldn't have access to the conf files on any of
          these servers.

          * (this front-end script would also contain some kind of
          authentication for "connecting " to my site - but one thing at a time!)


          -- Original Post --
          colmanNOSPAMFOR ME@rominato.com (Colman) wrote in message news:<4accd45d. 0402021335.4d0d 30ac@posting.go ogle.com>...[color=blue]
          > I couldn't think of a concise way to describe this in the Subject!
          > Anyways...
          >
          > I am creating a PHP/MySQL driven website. I would like to provide
          > other users a sort of customized front-end PHP script which they can
          > install on their own server which will basically act as an alias for
          > my site; that is, when someone goes to WWW.THEIR-SITE.COM they
          > actually see and interract with the content on WWW.MY-SITE.COM,
          > passing back and forth the same GET, POST, and COOKIE vars (uh...
          > that's all I need, right?). I don't just want to forward/redirect
          > them to my site; I want the user to use WWW.THEIR-SITE.COM in the URL
          > and any links in the page (this front-end script would also contain
          > some kind of authentication for "connecting " to my site - but one
          > thing at a time!).
          >
          > I've tinkered with:
          > INCLUDE() - causes problems by using relative paths.
          > FILE_GET_CONTEN TS() - see the content well, but can't see GET and POST
          > vars.
          >
          > Any suggestions for a solution or at least a better set of keywords to
          > search the newsgroups? Thanks in advance for any help![/color]

          Comment

          • CountScubula

            #6
            Re: website alias frontend

            The dns/virtual hosting is nothing more than serveral names for the same
            website, thus no reason for authentication.

            This is the best/simplest way to have more than one domain name for a web
            site, you will have complete controll over it, not the client, thus
            eliminating the *nned* for authentication.

            NOW, if you are only wanting to allow access to certain parts of the
            website, this too can be done easily (in linux), but we still do not know
            what you are trying to do, tell us what you are doing not what you think you
            need to do. I mean this only, becouse I think you are trying to allow
            access to parts of your data, no entire site, you you are doing affiliate
            sites, every goal, has a differnt solution

            --
            Mike Bradley
            http://www.gzentools.com -- free online php tools
            "Colman" <colmanNOSPAMFO RME@rominato.co m> wrote in message
            news:4accd45d.0 402030934.3a678 97c@posting.goo gle.com...[color=blue]
            > Thanks for your responses!
            >
            >
            > --1--
            > Socket Stuff / Proxy / Curl / Snoopy ... My knowledge is completely
            > lacking in these areas. I will try to investigate.
            >
            >
            > --2--
            > DNS / Virtual hosting ... I think I see where you guys are going with
            > this (I'm not entirely knowledgable in that area and will look into
            > it), but it sounds like -- and please correct me if I'm wrong -- that
            > by going that route I will be unable to (as hinted in my original
            > post*) insert a script in between which will handle some
            > authentificatio n for the "connection " between MY-SITE and the
            > requesting/client THEIR-SITE script and be invisible to the user.
            > That is, the site using this front-end script is basically accessing
            > only a subset of my site's entire content.
            >
            > Therefore, what I would like to have happen is when someone goes to
            > WWW.MY-SITE.COM they will have access to everything, but when someone
            > goes to WWW.THEIR-SITE.COM, the front-end script at THEIR-SITE makes a
            > request of some kind (include()?) from MY-SITE in a way which would
            > identify itself as THEIR-SITE by providing the proper authentication
            > and then MY-SITE would return the appropriate content.
            >
            > I Hope I'm making sense. Perhaps DNS/Virtual hosting can do this for
            > me? I certainly wouldn't have access to the conf files on any of
            > these servers.
            >
            > * (this front-end script would also contain some kind of
            > authentication for "connecting " to my site - but one thing at a time!)
            >
            >
            > -- Original Post --
            > colmanNOSPAMFOR ME@rominato.com (Colman) wrote in message[/color]
            news:<4accd45d. 0402021335.4d0d 30ac@posting.go ogle.com>...[color=blue][color=green]
            > > I couldn't think of a concise way to describe this in the Subject!
            > > Anyways...
            > >
            > > I am creating a PHP/MySQL driven website. I would like to provide
            > > other users a sort of customized front-end PHP script which they can
            > > install on their own server which will basically act as an alias for
            > > my site; that is, when someone goes to WWW.THEIR-SITE.COM they
            > > actually see and interract with the content on WWW.MY-SITE.COM,
            > > passing back and forth the same GET, POST, and COOKIE vars (uh...
            > > that's all I need, right?). I don't just want to forward/redirect
            > > them to my site; I want the user to use WWW.THEIR-SITE.COM in the URL
            > > and any links in the page (this front-end script would also contain
            > > some kind of authentication for "connecting " to my site - but one
            > > thing at a time!).
            > >
            > > I've tinkered with:
            > > INCLUDE() - causes problems by using relative paths.
            > > FILE_GET_CONTEN TS() - see the content well, but can't see GET and POST
            > > vars.
            > >
            > > Any suggestions for a solution or at least a better set of keywords to
            > > search the newsgroups? Thanks in advance for any help![/color][/color]


            Comment

            • Colman

              #7
              Re: website alias frontend

              First (in case it matters) I'm developing all this stuff with
              PHP/MySQL/Apache on a Win2k machine and my webhost acct runs on some
              flavor of BSD; I don't have all the version numbers handy.

              The core structure of my site is based on a "folder tree" scheme, with
              each folder having content and subfolders. These relationships are
              all defined and the content stored in a MySQL db. That is, the
              folders don't actually exist anywhere except as records in the db.

              So basically I would want the front-end script to provide users of
              THEIR-SITE to only have access to a certain branch of the folder tree
              on MY-SITE and still be able to use all the features (searching,
              discussion, joining, etc.) which are built in to MY-SITE.

              It would be like setting up say... imagine if SLASHDOT.ORG provided
              you with a front-end script that allowed you to use COUNTSCUBULA.CO M
              as an alias for just SLASHDOT'S SCIENCE section, and the scripts on
              SLASHDOT were savvy enough to provide users of COUNTSCUBULA with the
              appropriate URLs/links and a different CSS and banner.

              Am I making any sense?

              Comment

              • CountScubula

                #8
                Re: website alias frontend

                Yes, this was my question, I thought you were doing something like this,
                only providing partial content.

                if it is purely subdirecty driven, and nothing dynamic, you can use a
                virtual host entry, pointed to that sub directory.

                Now if you want to provide dynamic content to users, then set your site up
                this way from the beginging, have scripts on thier site that call scripts on
                your site for the conentent.

                --
                Mike Bradley
                http://www.gzentools.com -- free online php tools
                "Colman" <colmanNOSPAMFO RME@rominato.co m> wrote in message
                news:4accd45d.0 402031544.33ac8 261@posting.goo gle.com...[color=blue]
                > First (in case it matters) I'm developing all this stuff with
                > PHP/MySQL/Apache on a Win2k machine and my webhost acct runs on some
                > flavor of BSD; I don't have all the version numbers handy.
                >
                > The core structure of my site is based on a "folder tree" scheme, with
                > each folder having content and subfolders. These relationships are
                > all defined and the content stored in a MySQL db. That is, the
                > folders don't actually exist anywhere except as records in the db.
                >
                > So basically I would want the front-end script to provide users of
                > THEIR-SITE to only have access to a certain branch of the folder tree
                > on MY-SITE and still be able to use all the features (searching,
                > discussion, joining, etc.) which are built in to MY-SITE.
                >
                > It would be like setting up say... imagine if SLASHDOT.ORG provided
                > you with a front-end script that allowed you to use COUNTSCUBULA.CO M
                > as an alias for just SLASHDOT'S SCIENCE section, and the scripts on
                > SLASHDOT were savvy enough to provide users of COUNTSCUBULA with the
                > appropriate URLs/links and a different CSS and banner.
                >
                > Am I making any sense?[/color]


                Comment

                Working...