0

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?

2 Answers 2

1

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.

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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