title: Parse error: syntax error, unexpected (T_STRING) on line 1
body: <p>I am creating a script to prevent empty user Location field based on a previously developed filter function. On localhost everything works fine but online i got strangely his error : </p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected 'QA_INCLUDE_DIR' (T_STRING) in /home/picas/public_html/plugin/location-required/profile-checker.php on line 1</p>
  </blockquote>
  
  <p>below the code:</p>
  
  <pre><code>&lt;?php
  
  require_once QA_INCLUDE_DIR.'qa-filter-basic.php';
  
  class qa_profile_checker {
  
      function filter_profile(&amp;$profile, &amp;$errors, $user, $oldprofile) {
  
          $fb = new qa_filter_basic();
          $userfields=qa_db_single_select(qa_db_userfields_selectspec());
          foreach ($profile as $key =&gt; $value) {
              // sanitize
              $profile[$key] = qa_html($value);
              foreach($userfields as $userfield) {
                  if ($userfield['fieldid']==$key) break;
              }
              switch ($userfield['title']) {
              case 'location':    // Location (Required)
                  $fb-&gt;validate_length($errors, $key, $value, 1, 100);
                  break;
              }
          }
      }
  }
  </code></pre>
  
  <p>My local machine runs under windows and the server under Linux if that could help.</p>
  
  <p>How comes that on localhost it's working fine but online it's not ?! </p>