$temp=explode("<div>",$buffer);
and
$temp=explode("<DIV>",$buffer);
notes the <div> and <DIV> how can i make those case insentitive...surely i could use the case insensitive in string comparison or position function rite?
in this case, i'd recommend using preg_split() instead. you can create a regex that will be case insensitive for you:
$temp = preg_split("|\<div\>|i", $buffer);
waa~~..thx!!!!