I found a java script that does the refresh, so, I was able to place this script at the end of my php processing, and it refreshes the main template parent.
Javascript is:
<script type="text/JavaScript" language="JavaScript">
<!--
parent.frames.location.href = 'http://www.website.com/index.php';
</script>