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

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

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

ios - CFRelease causing crash in iPad application -