Post by SandyClams » 22 Aug 2022, 12:39
there's a lot of ways to download from a URL in PHP, cURL and the file_get_contents function are probably the most common ways, which you can Google and learn about. Once you have the data downloaded from the URL, you can process it and display it on your own website just like any other data.
you may want to investigate and see whether the website has an API -- a preferred way for visitors to interface with the data from the site. Also, if the data you mean to grab off the website never changes, you don't need to download the live data in your code -- you can just download it one single time and then put the data itself directly into your page once you have it.
there's a lot of ways to download from a URL in PHP, cURL and the [c]file_get_contents[/c] function are probably the most common ways, which you can Google and learn about. Once you have the data downloaded from the URL, you can process it and display it on your own website just like any other data.
you may want to investigate and see whether the website has an API -- a preferred way for visitors to interface with the data from the site. Also, if the data you mean to grab off the website never changes, you don't need to download the live data in your code -- you can just download it one single time and then put the data itself directly into your page once you have it.