php - need to redirect url without using the function header -


i need redirect page another, can't use header function, there other way it?

what need this:

if (test){    ---do something---    redirect } else {    return false } 

thanks

if (test){    ---do something---    die("<script>location.href = 'http://www.google.com'</script>"); } else {    return false; } 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -