note 17067 added to install.windows
| From: | madsosterby at mail1 dot stofanet dot dk | Date: | Sat, 24 Nov 2001 10:32:42 +0000 |
| Subject: | note 17067 added to install.windows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-21231@lists.php.net to get a copy of this message | ||
Win9x , DOMXML, PHP4.06, Apache 1.3.22
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 b) the you MUST write
down the full path to the xml-file.
$doc = xmlDocfile("c:\webserver\xml\employees.xml") or die("What employees?");
Greets, Mads Østerby
--
http://www.php.net/manual/en/install.windows.php
http://master.php.net/manage/user-notes.php?action=edit+17067
http://master.php.net/manage/user-notes.php?action=delete+17067
http://master.php.net/manage/user-notes.php?action=reject+17067