I have this code in my program but I fail to find the error, does anyone see it after 
a quick glance?


<?php
if ($action == "save_filter") {
$fh = fopen ("./filters.data.php", "r+b") or die ("couldnt open");
$file = fread($fh, filesize("./filters.data.php"));
$file = stripslashes($file);
$array = unserialize($file);
$array[] = array($filter, $name);

$out = serialize($array);
fwrite($fh, $out) or die;

fclose($fh);

}
?>

Reply via email to