title: cant write varibles into php file using file_put_contents PHP
body: <p>I'm trying to edit a file using the <code>file_put_contents</code></p>
  
  <p>Everything works fine (the data shows up in the test.php, well most of it) but the variables do not.</p>
  
  <p>heres an example of my problem</p>
  
  <p><strong>code for the file that will perform the <code>file_put_contents</code>:</strong></p>
  
  <pre><code>&lt;?php
   file_put_contents("test.php","&lt;?
  
  $title = "title_name_goes_here"
  echo $title;
  
  ?&gt;");
  ?&gt;
  </code></pre>
  
  <p><strong>Code that shows up in the target file (<code>test.php</code>):</strong></p>
  
  <pre><code>&lt;?
  
   = this_is_my_name
  echo ;
  
  ?&gt;
  </code></pre>
  
  <p><strong>What should show up in <code>test.php</code>:</strong></p>
  
  <pre><code>&lt;?
  
      $title = "title_name_goes_here"
      echo $title;
  
      ?&gt;
  </code></pre>
  
  <p>Also, I'm using Dreamweaver to write the code in and it seems to have problems (code errors) when i insert the quote for the <code>$title</code>'s value so its ok if i used <code>$title = title_name_goes_here</code> but it doesn't like <code>$title = "title_name_goes_here"</code>. When i say its okay, i mean dreamweaver doesn't show any code errors but it still doesn't do what it should.</p>
  
  <p>any ideas?</p>