What is the recommended way to include extensions like the gd library in PHP?

To include extensions like the gd library in PHP, the recommended way is to enable the extension in the php.ini configuration file. This can be done by uncommenting or adding the line `extension=gd` in the php.ini file. After making this change, you will need to restart your web server for the changes to take effect.

; Enable the gd extension
extension=gd