Php image generation code and html mixed encoding are garbled. When we embed a piece of php image generation code into html, why does php appear garbled? Solution: The result of the above code is to generate an image and use this file as a piece of php image generated code to embed it into html. why is the php part garbled?
Solution: The above code produces an image.
Use this file as a separate PHP file and call it with tags in HTML.
Directly inserting the file is garbled, because the browser has already processed the file in HTML format. you can try another image format. of course not.
Call method:
When using html syntax: you can call it. when the server performs verification, the verification characters stored in the session are compared with the characters submitted by the user. if they are the same, verification is passed.
Why? Solution: The result of the above code is to generate an image and use this file as...