Hi NG.
I have a problem with an php application handling files.
The problem is when my app. opens an excisting file with text in it for
editing.
How do I make sure that the edited (new) text doesn't just get written like
a layer over the old text, so if the new text is shorter than the old one,
t
Thanks... it works!!
"Darvin Andrioli" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > $filename = "/home/sites/www.ktjconsulting.com/web/demo/cms/cms.htm";
> > $fp = @fopen("$filename", "w+") or die ("Could not open File");
> > fputs ("$EditorValue"); <
> $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
^
Is it an error in your e-mail, or really you have that code?
The statement should be "fputs(
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:
$EditorValue is the value of