Example: my website also collects articles. how is the image format like this achieved? Simply put, it is how to save the collected images. what is the logic of the image. php displayed on the front end? Maybe my expression is not clear enough. what I want is that the server already has images, but at the front end I also want...
Example: my website also collects articles. how is the image format like this achieved?
Simply put, it is how to save the collected images. what is the logic of the image. php displayed on the front end?
Maybe my expression is not clear enough. what I want is that the server already has images, but I also want to use image. php on the front end? Url = xxxxxxx is used to display images. Therefore, what is the logic of image. php?
Reply content:
Example: my website also collects articles. how is the image format like this achieved?
Simply put, it is how to save the collected images. what is the logic of the image. php displayed on the front end?
Maybe my expression is not clear enough. what I want is that the server already has images, but I also want to use image. php on the front end? Url = xxxxxxx is used to display images. Therefore, what is the logic of image. php?
First, each image requires an id, suchhajhdjs
Then url? Id = hajhdjs
The background obtains the corresponding image based on the id, and then uses
Imagepng (): The function outputs an image.
It is equivalent to outputting images dynamically. the parameter string following it locates the image position.
There are many ideas:
Directly use nginx to intercept and redirect parameters to other URLs
Php obtains the local path image based on parameters and outputs
1. the backend outputs image files based on parameters.
2. set the response headerContent-Type: image/png
Set MIME Types in PHP.echoOutput the image content.
The server (php) receives parameters, obtains the real link characters of the image, concatenates the complete link url, and then echo file_get_contents (url)