Image with parameter - HTML

后端 未结 7 1823
半阙折子戏
半阙折子戏 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:56

    If this image is dynamic in some way, then the server that's hosting this image must be generating the image from PHP code.

    Take a look at the GD library, which lets you use PHP to generate images based on nothing or other images. The parameter must be passed to include that value inside the image (for example, an image that includes the text "123" or calculates using it somehow, for example a user ID).

    Then an .htaccess on the server rewrites the extension of .png to .php (or maybe another one) to make it look like a genuine image to some libraries and crawlers, or scripts etc.

    Another option, is that this is a simple image and that value is being ignored, or is just random to make sure the image isn't cached.

提交回复
热议问题