Image with parameter - HTML

后端 未结 7 1919
半阙折子戏
半阙折子戏 2021-01-14 00:59

I do not know how to frame the question. And I do not know how the below tag is working...


This tag i

7条回答
  •  轮回少年
    2021-01-14 01:51

    It depends on server, if you have png MIME type as text and you parse the files as if they were text files with php code then it has effect.

    It really depends on configuration of server not a browser.

    Morover, mod_rewrite can be used to change files that look like png to php files.

    Adding parsing png files via php parser AddType application/x-httpd-php .png

    mod_rewrite

     RewriteEngine On
     RewriteRule ^([a-zA-Z0-9_\-]*)\.png$ img.php?value=$1
    

    With these lineasdfasdf.png will be treated as img.php?value=asdfasdf

    So in this case when you use $_GET['value'] on asdfasdf.png or img.php?value=asdfasdf. It will have effect.

    If server is not configured to do such things and images are images(Yes i know it's briliant sentence) then it has no effect on common image.

    To sum up.

    It depends on server configuration not on the browser

提交回复
热议问题