php and running programs.
Hi
$targetfile="/etc/hosts"; //specify target file to be written to
$tmpfile="blah.php"; //specifies temp file
$cmd = <<<EOS
grep -v -e "$recordtodelete" $targetfile > $tmpfile
cp $tmpfile $targetfile
EOS;
exec($cmd);
Gives me an error with the $cmd>>>EOS line, whats wrong?