stijn0713 Posted April 9, 2013 Share Posted April 9, 2013 i'm wondering how dl() or enabling extentions in php.ini work exactly. If i enable an extention in the php.ini this code becomes available in all scripts. What about making extentions available throught dl() at runtime? What is the scope of this extention then? Can the PHP dl() function be compared with JAVA import package statement? Quote Link to comment https://forums.phpfreaks.com/topic/276729-dl/ Share on other sites More sharing options...
requinix Posted April 9, 2013 Share Posted April 9, 2013 PHP doesn't have file scopes. If you dl() an extension then the extension is loaded. Stuff before can't use it, stuff after can. But avoid dl(). If your script requires an extension then it should be specifically enabled in the php.ini, and if it doesn't require it then don't load it if it's not present. Quote Link to comment https://forums.phpfreaks.com/topic/276729-dl/#findComment-1423763 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.