title: Parse error: syntax error, unexpected T_VARIABLE" for file_exists call
body: <p>I'm using the following code to determine if a file is present in the directory pdf_Order_pdf/   which will display a working link or just and anchor link if file not present, I am a complete novice with php (as you can see) but do have a very limited understanding.</p>
  
  <pre><code>&lt;?php
  if(file_exists('pdf_Order_pdf/'.$row_Recordset1["our_ref"]'.pdf')) 
      echo 'pdf_Order_pdf/'.$row_Recordset1["our_ref"]'.pdf'; 
  else 
      echo '#';
  ?&gt;
  </code></pre>
  
  <p>the code above is in between the following html:</p>
  
  <pre><code>&lt;a href="****code above ****"&gt;File&lt;/a&gt;
  </code></pre>
  
  <p>I get the following error</p>
  
  <pre><code>Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\SwiftPHP\resultsSupplier.php on line 230
  </code></pre>
  
  <p>Why does this happen?</p>