Home > Article > Backend Development > How to access the download link in php and then save the downloaded file?
Description:
A download link on the Internet will download a picture when accessed in the browser. How to use a php script to access this link and then save the downloaded picture to a local designated folder?
I tried to use curl and file_get_contents, but failed. Please ask the experts for advice and post a demo to watch and learn
<code>https://clarks.scene7.com/is/image/clarks/download/26085012_A</code>