What am I doing wrong? PHP script with nothing visibly wrong
<pre><code>&lt;?php


$file = fopen("configuration.conf","w+");
$settings['LogEnabled'] = "true";
$settings['Pass'] = "pass";
$settings['ShowWarning'] = "true";
fwrite($file,serialize($settings));


$path = "configuration.conf";
$file2 = file_get_contents($path);
$settings2=unserialize($file2);
echo($settings2['LogsEnabled']);

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

<p>It ought to show "true" when run. Whats wrong?</p>

<p>I tried fread and fopen for $file2, but neither work.</p>

<p>EDIT: It does not throw an error.</p>

<p>The file has permissions 0740</p>
