How do you enable dynamic loading in PHP?

To enable dynamic loading of extensions, set enable_dl option in php.ini to 1