title: php define statement failing while moving php app from linux system to one running windows 7 with wamp
body: <p>I'm setting up a dev environment to work on a php site. 
  i've copied all my source code onto a windows 7 box running wamp. </p>
  
  <p>I'm trying to update all the paths to reflect the correct locations on my dev box. 
  But I'm having probem with some of my define statements.  For example, I have the following code: </p>
  
  <pre><code>define ('DOCUMENT_ROOT', 'c:\wamp\www\myapplicationname\members\');
  define ('DB_LOG', 'c:\wamp\www\myapplicationname\members\log\db');
  define ('ERROR_LOG', 'c:\wamp\www\myapplicationname\members\log\errors');
  </code></pre>
  
  <p>When I try to run site site, I get the following error message: </p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected T_STRING in
    C:\wamp\www\myapplicationname\members\includes\init.php on line 39</p>
  </blockquote>
  
  <p>Line 39 is the second define statement I listed above.  I can tell there's a problem because the syntax highlighting for the second line is not working.  It doesn't recognize the "define" statement.<br>
  If I change the first line to look like: </p>
  
  <pre><code> define ('DOCUMENT_ROOT', 'c:\wamp\www\myapplicationname\members\\');
  </code></pre>
  
  <p>then the highlighting works again, but ofcourse, the path is wrong. </p>
  
  <p>Can you tell me what I'm missing ?</p>
  
  <p><strong>EDIT 1</strong></p>
  
  <p>I've tried to change it to: </p>
  
  <p>'define ('DOCUMENT_ROOT', 'c:\wamp\www\myapplicationname\members\'');</p>
  
  <p>but then later in the code when we're appending to DOCUMENT_ROOT like so, </p>
  
  <pre><code>require_once DOCUMENT_ROOT.'\inc\exception.class.php';
  </code></pre>
  
  <p>i get the following error: </p>
  
  <p>Warning: require_once(c:\wamp\www\myapplicationname\members'\inc\exception.class.php) [function.require-once]: failed to open stream: </p>