lundi 29 juin 2015

xml data feeds to mysql. ? but link is time out error occure. see attached link

 hello my problem is different then my qestion.. please see below url

http://ift.tt/1dseraz

but " You have exceded your download limit for Feed ID 363. Please try again in 327 minutes"

this error occure and if i use http://ift.tt/1U03kai

then csv file download.. but i want to download product feeds to mysql 

i already use code for XMl and CSV but problem is fetching data..

code for xml

     $response = file_get_contents($url, true);
 $pxml = simplexml_load_string($url);


`foreach($pxml->Products->Product as $product )
{
echo $id= $product ->ProductID, "<br>"; 
echo $description = $product ->ProductDescription, "<br>";
}`

 below code for csv..

see `if (($handle = fopen($url, "r")) !== FALSE)
{
    while (($data = fgetcsv($handle, 2048, ",")) !== FALSE)
    {

      print_r($data);


    }  
}


`

if any solution then tell me.. if url is exceded your download limit then try after limit

Aucun commentaire:

Enregistrer un commentaire