livestrong
Technical User
Hi Everyone
for example
realdata.xml
and
contain the same xml
will work fine and return the data i need (the quantity)
however when i try to use a url
no joy
I know this used to work in previous versions of php, but i'm using version 5 now.
Any idea's anyone??
for example
realdata.xml
and
contain the same xml
Code:
<?php
$realdata = simplexml_load_file('realdata.xml');
foreach ($realdata->ITEM as $item) {
printf("Quantity: %s\n", $item->QTY);
}
?>
will work fine and return the data i need (the quantity)
however when i try to use a url
Code:
<?php
$realdata = simplexml_load_file('[URL unfurl="true"]http://www.myxmldata.asp?pid=111');[/URL]
foreach ($realdata->ITEM as $item) {
printf("Quantity: %s\n", $item->QTY);
}
?>
no joy
I know this used to work in previous versions of php, but i'm using version 5 now.
Any idea's anyone??