Have a consistent problem in not being able to load dll extensions (GD and those refered to in Kevin Yank's XSL article http://www.webmasterbase.com/article.php?pid=35&aid=602)

Platform is XP professional with webservices, Internet Explorer 6.0, PHP 4.0.6.

Followed Kevin's instructions

Extensions are stored in c:\php\extension and for good measure in c:\windows\system32

php.ini includes line extension_dir = "c:/php/extension"

Uncommented extension=php_sablot.dll

When displaying simple php page, for example just a call to phoinfo() get windows popup messages "unable to load dynamic library 'c:/php/extension/php_sablot.dll' - The specified procedure could not been found.

Have tried variations: slashes windows style \ or unix style /, quotes around folder name, dl() in the php script. Nothing works.

Is it me or XP ?

    Plodding on I found that by loading PHP 4.1.0 extensions like php_gd.dll (with 4.1.0 distribution) load and work fine.

    Sablot 0.71 remains a problem. Minimal php script with dl('sablot.dll') kicks out the message -> Warning: Invalid library (maybe not a PHP library) 'sablot.dll' in c:\inetpub\wwwroot\xml\test\dl.php on line 4.

    Sablot dll is latest download from http://www.gingerall.com; filesize 192 KB (196,608 bytes), Modified 06 November 2001, 15:08:46.

    Is there anything XP platform dependent here as in the dll will work on other Windows platforms but notr XP ?

      Sablot support has been given up in PHP4.1.0, as far as I know, in favour of the new xlst extension. You can easily load in via the php.ini file (php_xlst.dll).

      However, it refers to another library "sablot.dll" residing in the php\dll directory, which needs to be copied to winnt\system32 directory. You cannot load the sablot.dll directly, as it is not a PHP extension (they all start with php_). The php\dll directory contains no extensions, but additional libraries needed for some of the extensions.

      -ingmar

        Thanks Ingmar, advice worked, almost ...

        php.net distribution of sablot.dll is different from the one distributed by gingerall.com.

        As I am using the binary distributions I noticed that xsl_set_encoding documented on http://uk.php.net/manual/en/ref.xslt.php page is not available.

        Have also run in to a baffling error from minimal php/xm and xsl scripts: Warning: Sablotron error on line 4: missing required XSLT attribute in c:\inetpub\wwwroot\xml\script\pag.php on line 6.

        Evidently it is all 'working' al least extensions and dll's get loaded.

        Posted detail on the XSLT attribute in the coding help section of phpbuilder.com. Maybe someone else has solution to this one.

        Thanks again,

        Jef

          Write a Reply...