Secured XML feed import

Jung Lee

New Member
I am working on store products import from live XML feed.Now I have one problem, with following code I imported several XML feeds, except this:XML Live FeedCode I used for all feeds is:\[code\]<?php\[/code\]//dropshipper's feed URL$myFeed = 'http://feedurl/feed.xml';// specify the name of the file you want to save$myFilename = 'some_feed.xml';\[code\]if ($myFeed != '') {// Initialize the cURL session$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $myFeed);//Create a new file$fp = fopen($myFilename, 'w');// Save to filecurl_setopt($ch, CURLOPT_FILE, $fp);// Execute the cURL sessioncurl_exec ($ch);//Close cURL session and filecurl_close ($ch);fclose($fp);echo "Some Feed Imported Successfully!";} \[/code\]?>But mentoined feed CAN NOT BE READ from script, and I dont know how to create import. This feed can be opened in browser and everyone can see data, but it can not be imported on server through script.Any help, please?
 
Back
Top