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

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -