title: Addslashes displays as forward slashes in php
body: <p>I have a file on my server that i want to access. The filename is <code>ken\'s book.doc</code></p>
  
  <p>But in my db, it was stored as <code>ken's book.doc</code></p>
  
  <p>(I have fixed the backslash issue, but still have problems accessing the previously uploaded files on server.</p>
  
  <p>I used addslashes to add the back slash but it displays it as: <code>ken/'s book.doc</code> (that is a forward slash instead of a backslash.</p>
  
  <p>I have used: </p>
  
  <pre><code>str_replace("'", "\'", $filename);
  </code></pre>
  
  <p>yet it displays as a forward slash. </p>
  
  <p>How can i fix this?</p>
  
  <p>Thanks</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Extra Information: I am using the new value as part of a link. that is:</p>
  
  <pre><code>&lt;a href="&lt;?php echo str_replace("'", "\'", $filename);?&gt;"&gt;View&lt;/a&gt;
  </code></pre>