I've had my head down al afternoon and only just returned to post a solution.
Just seen yours and we will give it a go thanks
In the meantime my Boss and I have established the following solutions but it only works if there are only 2 pieces of text between the bodt tags.
which in our case this is what we are doing
code follows
Thanks
Boss & I have established an answer as follows
where reply = the file string to inspect
- note if the file to inspect contains HTML tags then the fread funstion
will ignore ALL tags including the <body> & </body> (this took a while to click!)
$length=1000000;
$fp = fopen($reply, 'r') or die("Couldn't create file.") ;
$string = fread($fp,$length) ;
if(ereg("(.+)\ (.+)$", $string,$arr)) {
$ivr_result= $arr[1];
$ivr_comment= $arr[2];
} else {
}
echo($ivr_result."---------");
echo($ive_comment);
?>
Cheers
Paul