Apache runs the image files as PHP files -
i updated php php7, apache configuration went wrong. doesn't read files directly , php deal them. did test, wrote <?php echo "hello world"?>
txt file , renamed test.jpg. , shows 'hello world' when visit jpg file. can't find error is.
this test url: http://shouke.luopan.me/test.jpg
try change header content type :
header("content-type: image/jpg");
Comments
Post a Comment