以下代码能正确在浏览器中显示图片的是:( ) A: <;?php$img = imagecreatefromjpeg(“images/scce.jpg”)imagejpeg($img);imagedestroy($img);?>; B: <;?phpheader(“content-type:image/jpeg”);$img = imagecreatefromjpeg(“images/scce.jpg”)imagejpeg($img);imagedestroy($img);?>; C: <;?phpheader(“content-type:image/jpeg”);$img = imagecreatefromfile (“images/scce.jpg”)imageout($img);imagedestroy($img);?>; D: <;?phpheader(“content-type:image/jpeg”);$img = imageopen(“images/scce.jpg”)imagejpeg($img);imagedestroy($img);?>;
以下代码能正确在浏览器中显示图片的是:( ) A: <;?php$img = imagecreatefromjpeg(“images/scce.jpg”)imagejpeg($img);imagedestroy($img);?>; B: <;?phpheader(“content-type:image/jpeg”);$img = imagecreatefromjpeg(“images/scce.jpg”)imagejpeg($img);imagedestroy($img);?>; C: <;?phpheader(“content-type:image/jpeg”);$img = imagecreatefromfile (“images/scce.jpg”)imageout($img);imagedestroy($img);?>; D: <;?phpheader(“content-type:image/jpeg”);$img = imageopen(“images/scce.jpg”)imagejpeg($img);imagedestroy($img);?>;
1