Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to copy a website from Website A to Website B every 10 minutes. Then with purple-include I want to do a transclusion and display it on mywebsite.com/page.html

So the task is download websiteA.com/file to websiteB.com/file

I figured out the transclusion part but I do not know how to copy a webpage from A to B. Are there any script for this or how can I do this?

share|improve this question
up vote 1 down vote accepted

Assuming the file on pingdom is available over HTTP, just read in the page using the server side language of your choice and save it to a file or your database. With PHP you can use file_get_contents().

See this page for more on this.

share|improve this answer

You also can use curl functions for more advanced control of your distant request.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.