|
-
Mar 12th, 2005, 12:32 AM
#1
Thread Starter
Junior Member
How to manipulate xml file in php
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.
-
Mar 12th, 2005, 09:44 AM
#2
Re: How to manipulate xml file in php
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 12th, 2005, 11:12 AM
#3
Thread Starter
Junior Member
Re: How to manipulate xml file in php
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?
-
Mar 13th, 2005, 04:38 AM
#4
Re: How to manipulate xml file in php
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.
-
Mar 13th, 2005, 08:44 AM
#5
Thread Starter
Junior Member
Re: How to manipulate xml file in php
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.
-
Mar 13th, 2005, 02:57 PM
#6
Re: How to manipulate xml file in php
Try creating a php info file. To do this make a PHP script called phpinfo.php and put this line in it:
PHP Code:
<?php phpinfo(); ?>
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|