如何在php 5.3中动态加载php扩展@dl('ioncube_loader_lin_5.3.so')

问题描述:

I am trying to load php extension @dl('ioncube_loader_lin_5.3.so') dynamically , but gives me fatal error :call to undefined function dl(). Then I searched alternative for it in php 5.3 but not able to find right information, kindly help.

我正在尝试动态加载php扩展名@dl('ioncube_loader_lin_5.3.so'),但却让我致命 错误:调用未定义的函数dl()。 然后我在php 5.3中搜索了它的替代品,但无法找到正确的信息,请帮助。 p> div>

From the docs of dl():

5.3.0: dl() is now disabled in some SAPIs due to stability issues. The only SAPIs that allow dl() are CLI and Embed. Use the Extension Loading Directives instead.

You need to add the extension to your php.ini: extension=/path/to/extension/ioncube_loader_lin_5.3.so