Reference blog post: Building a PHP development environment under Windows
Note:
extension_dir: needs to be set to an absolute path, otherwise the program will not be able to find the extension library
extension=php_gd2.dll: must be turned on, otherwise the image function will fail and the "GD with FreeType or ImageMagick PHP extensions are required" exception will be thrown
Session.use_trans_sid=1: Solve the problem that the session cannot be passed to the next page
If you encounter an exception similar to "****extensions are required", just open the relevant library