Is there anything in PHP that is the equivalent of manually pressing the F5 page reload button? My php script is in a frame and isn\'t the parent script but it needs to ref
Use JavaScript for this. You can do:
echo '
<script type="text/javascript">
parent.window.location.reload(true);
</script>
';
In PHP and it will refresh the parent's frame page.
Actually it is possible:
Header('Location: '.$_SERVER['PHP_SELF']);
Exit(); //optional
And it will reload the same page.
<?php
echo "<script>window.opener.location.reload();</script>";
echo "<script>window.close();</script>";
?>
With PHP you just can handle server-side stuff. What you can do is print this in your iframe:
parent.window.location.reload();