I'm writing $somecontent to the file. $somecontent is at the moment made up of
Code: Select all
$somecontent = '<?php $adminpassword=';
$somecontent .=$adminpassword;
$somecontent .=';\n $moderate=';
$somecontent .=$moderate;
$somecontent .=';\n $postsperpage=';
$somecontent .=$postsperpage;
$somecontent .='; ?> ';Code: Select all
<?php $adminpassword=3bad6af0fa4b8b330d162e19938ee981;\n $moderate=y;\n $postsperpage=1; ?>Code: Select all
Parse error: syntax error, unexpected T_STRING in /home/amoyle/public_html/guestbook/config.inc.php on line 1What have I done wrong?