Write to text file problem in PHP
<p>I have this page called up.php that adds 1 to a txt file set with all permissions. </p>

<pre><code>&lt;?php

$name = file_get_contents("name.txt");

if(!file_exists('number.txt')){
file_put_contents('number.txt', ((int) file_get_contents('number.txt')) + 1);
header('Location: "$name.txt");
} 

?&gt;
</code></pre>

<p>I have a form action button that runs this php page, however the browser comes back with this:</p>

<p>Parse error: syntax error, unexpected $end in /up.php on line 10. </p>

<p>I am lost here. Any ideas on why this is happening?</p>
