Is there a function that I could put at the bottom of a script that would act as a re-direct much like the header () function- however, insuring that the script previous to this will execute? For further comment- what we are working toward is a way to have multiple environments (PHP, ASP) write to one php class for database population..any thoughts. Thanks.
you can use a simple redirect script. that should work.
<script> function redirect() { window.location.replace("index.php"); } setTimeout("redirect();", 1250); </script>
IF you don't mind that it quits working if people have javascript turned off. :-(
But I don't see what's wrong with a regular redirect: you can do as much processing as you want in your script, and then redirect the browser to whatever url you like.
See: <a href = 'http://www.phpbuilder.com/forum/read.php3?num=2&id=144221&thread=122991'>Redirect</a>