It looks like I found the answer I needed and I had to actually add it directly to the parser function itself.
I'll post the new product in a moment but this appears to do the trick:
PHP Code:
function parse_wowarmory($url)
{
ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)');
$ch = curl_init();
$timeout = 5;
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$xml = curl_exec($ch);
require_once(DIR . '/includes/class_xml.php');
$xmlobj = new vB_XML_Parser($xml);
return $xmlobj->parse();
curl_close($ch);
}
thanks to Hyrel for providing it. However, it might be returning empty arrays. Still testing with this code further.