Description: a download link on the network. an image will be downloaded when accessed in a browser. how can I use a php script to access this link, then save the downloaded image to the specified local folder? Failed to try curl and file_get_contents. Ask the experts and paste a de... description:
A download link on the Internet downloads an image from a browser. how can I use a php script to access this link and save the downloaded image to a local folder?
Failed to try curl and file_get_contents. Ask the experts and paste a demo to learn.
Https://clarks.scene7.com/is/image/clarks/download/26085012_A
Reply content:
Description:
A download link on the Internet downloads an image from a browser. how can I use a php script to access this link and save the downloaded image to a local folder?
Failed to try curl and file_get_contents. Ask the experts and paste a demo to learn.
Https://clarks.scene7.com/is/image/clarks/download/26085012_A
Openssl support must be enabled when php accesses an https site
Images? Generally, the browser will download it for you.
For example, if your html end sends the resource address to the href attribute of a, you can directly download it when you click the link.
If you do not use this mechanism, you can convert the image information to base64 and store it locally.