Hi, I've got a problem:

I installed 4.2.0 on Apache/Windows ME and plugged in the DOMXML extention.
But if a number of DOMXML methods occures in the code, say append_child(), there comes a Windows alert "domxml2.dll performed an illegal operation and will now close"

How can I fix it?

Thanx beforehand
Victor

    Hi,

    It works on my w98 with php4.20, apache 1.3.2x.

    Get newest domxml2.dll from : www.fh-frankfurt.de/~igor/projects/libxml

    Unpack and copy "lib2xml.dll" to "c:\windows\system\"

    in PHP:

    Copy the file \php\php4ts.dll to c:\windows\system\

    Specic for Apache 2.0.x and PHP 4.20:
    copy "\php\experimental\apache2filter.dll to \windows\system\".

    Load php as module in apache:

    LoadModule php4_module c:/webserver/php/sapi/php4apache.dll AddType application/x-httpd-php .php

    Tjeck the new api to PHP-domxml at php.net, and my full toturial on www.mdz.dk

      Hi Mads,

      splendid article!

      But putting apache2filter.dll to C:\windows\system\ didn't help 🙁

      I still get something like "Apache caused an error in LIBXML2.DLL. Apache will now be closed." I beleive, it's a WinME problem, I guess I'll upgrade to Win 2000, or?
      Ok I'll play on a remote Unix machine.

      Viktor

      P.S. is it lib2xml.dll or still libxml2.dll?

        Hi Mads,

        I found where the problem was. I was trying to do the following:

        $node=xmltree("<dd>Hallo<br/>again</dd>");
        $root=append_child($node);

        but xmltree() returns an object of DomDocument object and append_child requires a DomElement one - there was a conflict.

        Is there any way to turn a piece of formatted text into an object and to append it to another node?

        Thanx
        Viktor

          Write a Reply...