Problem writing to file, can't find the error

From: Date: Thu, 01 Nov 2001 13:20:37 +0000
Subject: Problem writing to file, can't find the error
Groups: php.general 
Request: Send a blank email to php-general+get-73149@lists.php.net to get a copy of this message
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); } ?>

« previous php.general (#73149) next »