Dear Sir,

I made some changes to the savepage.php script file. I want to add an add comment function to a wiki wiki web. I am almost done except for one thing. This line:
          $pagehash['content'] = "$pagehash['content']" . "$newStuff"; 
does not parse correctly.

What is supposed sto happen is this; when the user wants to append a comment to a web page, the variable addComment is set in an html form. That is happening correctly. The variable $content contains the comment the user wants to append to the page. The variable $pagehash['content'] contains the original page 's content. The goal is to append the contents of $content to the contents of $pagehash['content'].

i added some test variables to see what was going wrong.
    echo($content) correctly displays the comment the user wants to append.
    echo( $pagehash['content'] ) only displays the word Array
and the line in question does not parse correctly. this is the error message I get:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/dav11id/novogrodsky-www/phpwiki-1.2.2/lib/savepage.php on line 177
Any idea what is causing the error?

Thank you for your time,
David Novogrodsky

p.s here is the entire code block line 177 is in:
      if (! empty($addComment) ) {
             $newStuff =  preg_split('/[ \t\r]*\n/', chop($content));
             echo( "<br>\n\n");
             echo( "stuff to add---");
           echo(  $content ); // this correctly displays the comment to be added
           echo(  "<br>\n\n" );
           echo( "the original page content: " .  $pagehash['content'] );  // the word Array is displayed here.
          $pagehash['content'] = "$pagehash['content']" . "$newStuff"; 
      } else {
          $pagehash['content'] = preg_split('/[ \t\r]*\n/', chop($content));
      }