User Profile

Collapse

Profile Sidebar

Collapse
seddy
seddy
Last Activity: Nov 14 '06, 03:45 PM
Joined: Oct 23 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • seddy
    replied to PHP to read XML file and export data to MySQL
    in PHP
    Of course

    Code:
    <?php
    $xfile = "http://www.izishop.net/export.php";
    $xparser=xml_parser_create();
    xml_set_element_handler($xparser, "startingHandler", "endingHandler");
    xml_set_character_data_handler($xparser, "cdataHandler");
    
    if(!($fp=fopen($xfile,"r")))
    {
    die ("File does not exist");
    }
    
    while($data=fread($fp,
    ...
    See more | Go to post

    Leave a comment:


  • seddy
    replied to PHP to read XML file and export data to MySQL
    in PHP
    Thank you. That is indeed the way to read the content :)
    I did what you said... I now used SAX parter and came to this:

    $xfile = "http://www.izishop.net/export.php";
    $xparser=xml_pa rser_create();
    xml_set_element _handler($xpars er, "startingHandle r", "endingHandler" );
    xml_set_charact er_data_handler ($xparser, "cdataHandler") ;

    if(!($fp=fopen( $xfile,"r")))...
    See more | Go to post

    Leave a comment:


  • seddy
    started a topic PHP to read XML file and export data to MySQL
    in PHP

    PHP to read XML file and export data to MySQL

    Hello !
    I`m kinda new to it so I found this `job` very hard therefor I ask for Your help.

    So, the thing is...
    I have this XML file ( http://www.izishop.net/export.php )
    which I need to open with php and read it, and insert some fields those fields on my MySQL database.

    Well... i found some usefull informations which might help me here:
    (http://www.thescripts. com/forum/thread2005.html )...
    See more | Go to post
No activity results to display
Show More
Working...