Hi guys,
Do u know how to retrieve information from an XML file and then make some manipulations on it like adding new elements into the XML file?
Thank you in advance.
Printable View
Hi guys,
Do u know how to retrieve information from an XML file and then make some manipulations on it like adding new elements into the XML file?
Thank you in advance.
Hi CornedBee,
Thank you for your reply.
My PHP version is 4.3.4, so i must use PHP 4 DOM. But I don't know how to enable php_domxml.dll inside of php.ini . Do you mind to teach me?
There is a section in the php.ini for called [extensions]. Disabled extensions have a ; character at the beginning of the line, enabled ones do not. So all you need to do is find the XML extension and remove the ; character to enbable it.
Hi visualAd,
I have tried this method to enable php_domxml.dll inside of php.ini in both
[1] C:\php\php.ini-recommended, and
[2] C:\WINDOWS\php.ini
but i still can't manipulate the XML file. The php still can't identify those functions. I don't know what should I do in order to get it works.
Try creating a php info file. To do this make a PHP script called phpinfo.php and put this line in it:
Check the path of the PHP.ini it is using and check to see if the XML extension has been loaded. If not you need to make sure the php_domxml.dll extists in your extensions directory.PHP Code:<?php phpinfo(); ?>