Files....
| From: | Todd WIlliamsen | Date: | Fri, 29 Mar 2002 15:59:53 +0000 |
| Subject: | Files.... | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-12821@lists.php.net to get a copy of this message | ||
Ok I made a content management intereface and I am trying to get it to open
write the contents then close the file, but I keep getting this error:
Warning: Wrong parameter count for fputs() in
/home/sites/site9/web/demo/cms/savenews.php on line 4
here is the code:
<?
$filename = "/home/sites/www.ktjconsulting.com/web/demo/cms/cms.htm";
$fp = @fopen("$filename", "w+") or die ("Could not open File");
fputs ("$EditorValue"); <---- LINE 4
fclose($fp);
?>
$EditorValue is the value of the form for the interface. I did check that
and seems to be ok.
When I change the $filename from absolute path to URL, nothing changes, same
error. I am getting frustrated.