I might be missing something here, but when i view my webhosts phpinfo (my site is virtual hosted) file i see;
extension_dir = ./
enable_dl=on

Is this a contradiction in terms because when i attempt to load, for example, a module using dl(php_xslt.so) i get an error and being on shared server i have no control over the extension_dir (php_ini_system). So what is the point of having enable_dl =on?

Is there any other way to load extensions without bothering the web host administrator? or is dynamic module loading not permitted for security/performance reasons?

    i think if the host wanted dl to be off for security readings, then they would have set enable_dl = false.

    try using dl with a path to your extension file

    dl("/path/to/host/file.so");

      I tried the full path but to no avail - like you mention why bother enable_dl if you cannot access the extensions - they could have left that there by default. It just becomes annoying because i think i am missing something obvious.

        Thanks for your interest weekender - here it is;

        Warning: dl(): Unable to load dynamic library './php_xsltso' -
        Cannot open "./php_xsltso" in /virtuals/xxx/public_html/dev/env.php on line 27

          if that file is in the /virtuals/xxx/public_html/dev/ folder, you probably need to add an extension. try .dll on windows, .so on unix

            The system is freebsd (*nix) and the entry is;
            dl(php_xslt.so);
            there error prints out without the "."

              right. on the php manual page for [man]xslt[/man], it says you need to download stuff from www.gingerall.com - did you get these files?

                No - i was just testing the dl function - did not really need to use xslt at this stage-just an example-i tried a few other extensions that i know come with php - all had the same result - thanks for your effort.

                  Write a Reply...