Problem enabling DOM XML on Win32

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mr Geetar

    #1

    Problem enabling DOM XML on Win32

    I'm running PHP 4.3.2 with Apache 2.0.46 on Windows XP Home. Intel P4
    1.5GHz chip with plenty of memory.

    I'm trying to enable DOM XML functions in PHP and having a bit of
    trouble. Per the PHP manual's instructions, I've done the following:

    1. Edited my php.ini file like so:
    [snip]
    ;Windows Extensions
    [snip]
    ;extension=php_ gettext.dll
    ;extension=php_ hyperwave.dll
    extension=php_i conv.dll <-- removed the ;
    ;extension=php_ ifx.dll
    ;extension=php_ iisfunc.dll

    2. Installed iconv.dll (ver. 1.9.1.win32 downloaded from
    http://www.zlatkovic.com/libxml.en.html) in C:\Windows\SYST EM32

    3. Restarted Apache

    I created a test PHP file with the following code:

    <?php

    $storyfile = "story.xml" ;

    $storydoc = domxml_open_fil e($storyfile);
    $storyroot = $storydoc->root();
    $nodes = $storyroot->children();

    printr($nodes);

    ?>

    to test everything out. PHP returned the following error:

    Fatal error: Call to undefined function: domxml_open_fil e() in
    C:\Apache2\htdo cs\xmldom.php on line 5

    Just to make sure I wasn't using the wrong function, I replaced
    domxml_open_fil e() with the deprecated xmldocfile() function, and got
    the same result.

    What am I missing here?

    --
    -~=+ Dave Baker +=~-
  • Janwillem Borleffs

    #2
    Re: Problem enabling DOM XML on Win32

    Mr Geetar wrote:[color=blue]
    > 1. Edited my php.ini file like so:
    > [snip]
    > ;Windows Extensions
    > [snip]
    > ;extension=php_ gettext.dll
    > ;extension=php_ hyperwave.dll
    > extension=php_i conv.dll <-- removed the ;
    > ;extension=php_ ifx.dll
    > ;extension=php_ iisfunc.dll
    >[/color]

    It seems that you have missed out on the also required php_domxml.dll, which
    should be bundled with php when you have downloaded the zip file.


    JW



    Comment

    • Mr Geetar

      #3
      Re: Problem enabling DOM XML on Win32

      Janwillem Borleffs wrote:
      [color=blue]
      > Mr Geetar wrote:
      >[color=green]
      >>1. Edited my php.ini file like so:
      >>[snip]
      >>;Windows Extensions
      >>[snip]
      >>;extension=ph p_gettext.dll
      >>;extension=ph p_hyperwave.dll
      >>extension=php _iconv.dll <-- removed the ;
      >>;extension=ph p_ifx.dll
      >>;extension=ph p_iisfunc.dll
      >>[/color]
      >
      >
      > It seems that you have missed out on the also required php_domxml.dll, which
      > should be bundled with php when you have downloaded the zip file.
      >
      >
      > JW
      >
      >
      >[/color]

      Oh dear God, it can't be that simple :)

      I can't believe I overlooked that extension completely. *loud sound of
      forehead thudding on desk*

      OK, problem solved. Back to work .. thanks!

      --
      -~=+ Dave Baker +=~-

      Comment

      Working...