read XML data from URL
Posted 26 April 2006 - 01:55 PM
I am new with XML and PHP. I am having problem reading XML data from a source URL. However; the source URL does not supply any filename at it's end. meaning, the data is just send from the URL with out any given filename at all.
I am having a hard time reading this or capturing the return value from so. Please HELP. Thank you.
Posted 26 April 2006 - 03:29 PM
Posted 27 April 2006 - 01:40 PM
What have you attempted so far? Please post the script.
if(($contents = file($filename)))
$contents = implode('', $contents);
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<body bgcolor="#FFFFFF" text="#000000">
$origin2 = 'https://twyp.secure-ing.com/ncol/test/orderdirect.asp?orderID=4141&PSPID=fastport&PSWD=1stdata&amount=103777¤cy=EUR&COM=sample data 10&CN=Brown, Jeine VIIII&BRAND=VISA&CARDNO=4111111111111111&ED=11/06&EMAILfirstname.lastname@example.org';
$siteval = file_get_contents($origin2);
echo 'this is a test result <br><br>';
I have try this one, but the site that had been returning the XML data that i needed is a secured one (HTTPS). with the normal site i was able to get the content for my process. Thank You, very much.
Oh, by the way the host i am using or that is made available for me is running IIS 4.0 i think.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users