The same thing happens when you switch to other pictures and cannot be displayed. Why is this happening?
Haha, this is quite troublesome. Check where there are spaces or empty newlines in the code, or try ob_start() output buffering. After testing, there is no problem with the code. First check if there is any problem with the file. If the file was good before downloading, check if there is output in front of the header
The above is that php-PHP can download images, but the downloaded images display errors. What is the reason? For more related content, please pay attention to the PHP Chinese website (www.php.cn)!