How can the extension_dir in the PHP.ini file be correctly configured to avoid issues with loading dynamic extensions?

When configuring the `extension_dir` in the PHP.ini file, it is important to ensure that the path specified points to the correct directory where the dynamic extensions (DLL files on Windows, SO files on Unix) are located. This will prevent issues with PHP not being able to load the required extensions when the server is running.

extension_dir = "C:/php/ext"  // Windows example