title: php include not working on mamp
body: <p>The require_once statement in my code is not working on MAMP. The same code was working perfectly on WAMP earlier before I ported the project over.</p>
  
  <pre><code>require_once('class\validate_group.php');
  </code></pre>
  
  <p>The error I get with this is:</p>
  
  <pre><code>Warning: require_once(class\validate_group.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/validate_login.php on line 37
  </code></pre>
  
  <p>The phpinfo.php is showing the include path as:</p>
  
  <pre><code>.:/Applications/MAMP/htdocs
  </code></pre>
  
  <p>"class" is a folder inside htdocs</p>
  
  <p>Strangely when I reverse the slash it starts reading the validate_group.php file. Will the reversed slashes still work in AWS where I am finally going to host this?</p>