Enabling XML in PHP

To enable XML extensions like SAX, DOM XML and XSLT within PHP, I had to adjust my php.ini file and copy a few files to the Windows ME SYSTEM folder:
path: c:\windows\system

Expat / SAX parser

Since recent times, Expat / SAX parser is built-in with the standard PHP installation; so, no 'brain-surgery' required! Quickly running your phpinfo() file will reveal one table on the page which will look like this:

SAX enabled on phpinfo.php

DOM XML

Enabling the Document Object Model or DOM(XML) was easy, just had to open up the php.ini file, look for:

code:
;extension=php_domxml.dll

and uncomment the line by simply removing the semicolon. Once again, the enabled extension can be verified using phpinfo() and should look like this:

DOMXML enabled on phpinfo.php

XSLT

The XSLT extension, based on the Sablotron XSLT processor was the most confusing to set up. Just uncommenting the extension in the php.ini file didn't do it for me! All Apache could do was dish out a really unhelpful error:

PHP Warning: Unable to load dynamic library 'c:\php\extensions/php_xslt.dll' - One of the library files needed to run this application cannot be found. in Unknown on line 0

Anyway, to get it altogether eventually, I had to copy the following 3 files from
path: c:\php\dlls
and paste them to
path: c:\windows\system

code:
expat.dll
sablot.dll
iconv.dll

Uncommenting the following line (in php.ini) completes enabling this extension;

code:
;extension=php_xslt.dll

If you still want to be certain everything's okay with enabling XSLT in your PHP setup, look for this in your phpinfo() output:

XSLT enabled on phpinfo.php

TOP

Do you find it easy to navigate through this site?

 Yes

 No

 Where am I?