3

Is that possible and if it is, how to do that? I'm asking because dl() function is not available to me and because PHP team is abandoning this function from further versions.

Please do not answer "Use the Extension Loading Directives instead" - that is exactly the part which I do not understand how and I would like to/I'm asking about.

5
  • 1
    This function has been removed from some SAPIs in PHP 5.3. Commented Dec 8, 2012 at 8:59
  • @greenV There's always the chance that a friendly email to your server admins would get them to install the extension needed, worth a try Commented Dec 8, 2012 at 9:01
  • @Dale, and even if I HAVE access to php.ini I could not install extension without that email to server admins? Commented Dec 8, 2012 at 9:08
  • possible duplicate of PHP 5.3+ enable_dl not enabling dl()? Commented Dec 8, 2012 at 9:08
  • @greenV probably not with your attitude no! Commented Dec 8, 2012 at 9:24

1 Answer 1

6

The function has been removed from all SAPIs other than CLI and Embedded as of PHP 5.3. SAPIs are the interface between PHP and a web server / the CLI / etc.

It is no longer possible to load extensions at run-time in some cases. There are no other options available to you if you find your current SAPI does not support runtime extension loading.

If you need an extension loaded reliably, you should do so in the proper place in the system configuration. No amount of saying "that is not the answer I want" will change reality.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.