Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url = "http://xxx:xxx@www.r-c.ro/feeds/complet.xml";
- curl_setopt($ch, CURLOPT_URL,$url);
- curl_setopt($ch, CURLOPT_POST, true); // tell curl you want to post something
- curl_setopt($ch, CURLOPT_POSTFIELDS, "");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // return the output in string format
- $output = curl_exec ($ch); // execute
- $xml = new SimpleXMLElement($output) or die('Error creating a SimpleXML instance');
- foreach ($xml->Products->Product as $product) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement