Results 1 to 6 of 6

Thread: How to manipulate xml file in php

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    29

    Red face 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.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    29

    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?

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    29

    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.

  6. #6
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width