title: PHP : unexpected 'echo' (T_ECHO) in /opt/lampp/htdocs/UI/user/index.php on line 156
body: <p>I am doing a php variable deceleration  in url </p>
  
  <p>i have piece of code </p>
  
  <pre><code>$message =  "Username or  password is not correct.";
  header("Location:".echo get_site_url()."/UI/user/index.php?message={$message}");
  </code></pre>
  
  <p>Where get_site_url() is </p>
  
  <pre><code>$GLOBAL_URL_OF_THE_SITE= "http://webfaction";
  
  
  function get_site_url(){
  
      global $GLOBAL_URL_OF_THE_SITE;
  
      return $GLOBAL_URL_OF_THE_SITE; 
  }
  </code></pre>
  
  <p>Now I want to redirect the header on location </p>
  
  <pre><code>header("Location:http://webfaction/UI/user/index.php");
  </code></pre>
  
  <p>But why my code is giving this error </p>
  
  <pre><code> Parse error: syntax error, unexpected 'echo' (T_ECHO) in /opt/lampp/htdocs/UI/user/index.php on line 156
  </code></pre>