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

Issues changing the value of an element in an array in matlab -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

vb.net - Alternative to the T-SQL AS keyword -