title: Parse error: syntax error, unexpected ')', expecting :: (T_PAAMAYIM_NEKUDOTAYIM)
body: <p>I have the following code</p>
  
  <pre><code>define("SCRIPT_URL", "");
  function ifScriptFolder() {
      if(isset(SCRIPT_URL) &amp;&amp; !empty(SCRIPT_URL)) {
          echo "/".SCRIPT_URL."/";
      } else {
          echo "/";
      }
  }
  </code></pre>
  
  <p>but it's giving me the following error:</p>
  
  <pre><code>Parse error: syntax error, unexpected ')', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in *(path)* on line 3
  </code></pre>
  
  <p>Can anyone see what's going wrong here or how to fix it?</p>