29 February 2020

How to Alternative to “header” for re-directs in PHP


Alternative to “header” for re-directs in PHP



function redirect($url)
{
    if (!headers_sent())
    {   
        header('Location: '.$url);
        exit;
        }
    else
        { 
        echo '<script type="text/javascript">';
        echo 'window.location.href="'.$url.'";';
        echo '</script>';
        echo '<noscript>';
        echo '<meta http-equiv="refresh" content="0;url='.$url.'" />';
        echo '</noscript>'; exit;
    }
}

No comments:

Post a Comment

How to run google search console request submission by UI vision IDE automate?

 Run google search console request submission by UI vision IDE automate? Source View --- Json Code {   "Name": "DemoCsvReadAr...