note 17060 added to ref.domxml

From: Date: Fri, 23 Nov 2001 23:27:28 +0000
Subject: note 17060 added to ref.domxml
Groups: php.notes 
Request: Send a blank email to php-notes+get-21219@lists.php.net to get a copy of this message
DOMXML on Windows 9x! I update this site frequently with latest news regarding Apache/PHP: www.mdz.dk DOMXML To make this work, I spend a year looking and trying to get the answer... here it is (I hope)-- Copy the file \php\php4ts.dll to c:\windows\system\ Open and edit "apache.conf". PHP MUST be loaded as a module, or it wont work with domxml. Here is a part of my apache.conf: #ScriptAlias /php/ "c:/webserver/php/" #AddType application/x-httpd-php .php #Action application/x-httpd-php "/php/php.exe LoadModule php4_module c:/webserver/php/sapi/php4apache.dll AddType application/x-httpd-php .php Now you should tjeck if you can start apache, and see that no errors occour. :) Open "c:\windows\php.ini" in notepad. Find and change these two lines to: (remember to change to rigth path!) extension_dir= "c:\WebServer\php\extensions"; extension=php_domxml.dll Now the Last part: I got it to work with: a) libxml2-v.2.4.6 and b)libxml2-2.4.10 Download libxml2 from www.fh-frankfurt.de/~igor/projects/libxml/index.html. Unpack and copy "lib2xml.dll" to "c:\windows\system\" NOTE: Using libxml2-v.2.4.10, you must also download "iconv binaries, version 1.7 for Win32" from the same site and unpack "iconv.dll" to "c:\windows\system\" Thats all.. I got it to work, so can you! ---- Test DOMXML With phpInfo() you´ll see this somewhere on the page: DOM/XML enabled libxml Version 2.3.7 XPath Support enabled XPointer Support enabled This piece of code will write "What employees?" if domxml not is installed correct. Note that a) you must have a file named employees.xml, and the you MUST write down the whole path to the xml-file. $doc = xmlDocfile("c:\webserver\xml\employees.xml") or die("What employees?"); Here is the proof that domxml can be runned under Windows 98. www.mdz.dk -- http://www.php.net/manual/en/ref.domxml.php http://master.php.net/manage/user-notes.php?action=edit+17060 http://master.php.net/manage/user-notes.php?action=delete+17060 http://master.php.net/manage/user-notes.php?action=reject+17060

« previous php.notes (#21219) next »