1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Rep Power

    mirroring a web site

    hello people...

    ive been looking at mirroring a web site and was wondering how it could be done..! basically i want to update one site and have it mirrored to another and update itself accordingly.

    Has anyone got any ideas how i can do this..? or point me in the right direction.

    im currently using apache but will use others if it can be done

    Any suggestions would be appreciated

  2. #2
  3. Retired
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Rep Power
    Are you going to be using PHP / MySQL ?

    If you are, you could write your pages so that links, for example, are written like ../ and not server.com/ etc. then if you do file uploads through a web page, upload to 2 servers using php ftp functions. Same with pages if you have a content management system type thing - when you do a page update - update to 2 databases.

    Alternatively, you run "cron jobs" every so often to download all the new material from one site then upload it to the new one ( again this can be done in PHP) but things like WGET (I think) are programs that can do that kind of stuff.

    Hope that makes sense - need more info, just ask


    >_ My Music Blog | Losing weight @notsoheavyblog | My Tweets


    Let the might of your compassion arise to bring a quick end
    to the flowing stream of the blood and tears .....
    Please hear my anguished words of truth.


IMN logo majestic logo threadwatch logo seochat tools logo