i'm looking how to Load the XML file in PHP and Return the data not redirect. Preferably to hide the xml content from the end user as much as i can.
I've seen something like this, but i can not make it work, please if you can write out the complete code with a link example..
public function sendResponse($type,$cause) {
$response = '<?xml version="1.0" encoding="utf-8"?>';
$response .= '<response><status>'.$type.'</status>';
$response = $response.'<remarks>'.$cause.'</remarks></response>';
return $response;
}
....
....
header("Content-type: text/xml; charset=utf-8");
echo sendResponse($type,$cause);
Please help if you can. Thank's in Advance, SX