Php is server side, but to manage you frames you need something like javascipt which works on client side. I'm affraid that you mix those two things.
http://www.tek-tips.com/viewthread.cfm?qid=1281918&page=6
<script type="text/javascript" language="javascript">
<!--
function refreshIframe(){
var iframeid = "sessionlog";
var h = parent.window.getElementById(iframeid).src;
parent.window.getElementById(iframeid).src = h;
}
//-->
</script>
Plus you need code which performs redirect:
<SCRIPT language="JavaScript">
<!--
window.location="http://someplace.com";
//-->
</SCRIPT>