Getting syntax error while using fopen and fread
<pre><code>$file = "status.txt";
$open = fopen($file, "r");
$size = filesize($file);
$count = fread($open, $size);

if($count == 1) {
    header('Location: http://www.google.com/');
} else {
    echo "Status is unavailable";
}
</code></pre>

<p>Hello, I am trying to read a text file.<br>
I get the error <code>Parse error: syntax error, unexpected T_STRING</code> while doing this.<br>
I am trying to read status.txt and if it has 1 it will redirect else it will say Status is unavailable.<br>
Any ideas?</p>
