title: strip slashes in php linux
body: <p>I want to ask a very simple question.</p>
  
  <p>I am working on a project in which I have entered a code, say I am entering a code like :</p>
  
  <pre><code>&lt;?php
  echo "Test";
  ?&gt;
  </code></pre>
  
  <p>On click of a save button, This code is being saved into a php file say <code>testfile.php</code>.</p>
  
  <p>When I am running this file on <code>windows 7 - wamp server</code>, then this is OK, but When I hosted this file on <code>000webhost.com</code> which is <code>linux server</code> then some backslashes (\) are added before <code>" "</code>. For writing into file, I am using code </p>
  
  <pre><code>$code = $_POST['yourcode'];
  $openphp = fopen("testfile.php","w");
  fwrite($openphp, $code);
  fclose($openphp);
  </code></pre>
  
  <p>In Linux server, this code is written as :</p>
  
  <pre><code>&lt;?php
  echo \"test\";
  
  ?&gt;
  </code></pre>
  
  <p>I dont want to save this backslashes (\), how can I avoid this while writing the file </p>