Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.