Providing the said script does not send any result to the browser you can use the header function.
header("location: http://www.yahoo.com");
Other than that you could use javascript:
<script language="javascript">
document.location = "http://www.yahoo.com";
</script>