Jump to content

dl()


stijn0713

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/276729-dl/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/276729-dl/#findComment-1423763
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.