Mobile app version of vmapp.org
Login or Join
Yeniel560

: Copy website content from WebsiteA.com/file.html to WebsiteB/file.com every time interval I want to copy a website from Website A to Website B every 10 minutes. Then with purple-include I want

@Yeniel560

Posted in: #Automation #Copy #LookingForAScript #Php #Transfer

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?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Yeniel560

2 Comments

Sorted by latest first Latest Oldest Best

 

@Cugini213

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

10% popularity Vote Up Vote Down


 

@Kevin317

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme