I can't see why this is wrong
Posted: Wed Jun 14, 2006 1:45 pm
Well for now I'm going to post the code that I am having an error with, the one you suggested to format the textfile
This is the error is prints:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /nfs/cust/8/25/05/650528/web/clairictionary/clairictionary.php on line 590
If I'm not clear, my basic objective is to simply write to a file via a form ((already wrote it) this is just the error proned part of the code) and format the entrys to look like this
$name#datasep#$word#datasep#definition#entrysep#
This is the error is prints:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /nfs/cust/8/25/05/650528/web/clairictionary/clairictionary.php on line 590
Code: Select all
<?php
// write the info using the format needed so I don't have to edit it!
// id the variable to show how I want the $entry to look!
$entry = $name . #datasep# . $word . #datasep# . $definition .
#entrysep;
$write_string = $entry
fwrite($fp, $write_string);
fclose($fp)
?>$name#datasep#$word#datasep#definition#entrysep#