Wednesday, May 19, 2010

Enabling DOM XML in PHP4

The following function will not work unless XML support is enabled in php

$xmldoc=domxml_new_doc();

In order to enable support edit php.ini and remove ; from

;php_domxml.dll

You must insure that the dlls directory c:\php4\dlls in in the system PATH variable.
Do change this : right click on my computer and choose properties
in properties click on advanced and at the bottom of the window click on
Enviroment variables

under system variables choose the path variable. and add the path to your dlls directory
with a ;
ie

;c:\php4\dlls

Your DOM functions should now work

1 comments:

  1. Thanks for sharing your ideas. It's great learning from you as a web developer

    ReplyDelete