SOLVED - Heredoc making me feel dumb
The offending code:
$checkbox_markup = <<<HEREDOC
<dt>Access</dt>
<dd>
<ul>
<li><input type="checkbox" class="checkbox" name="access[]" value="read" id="read" /><label for="read">Read</label></li>
<li><input type="checkbox" class="checkbox" name="access[]" value="write" id="write" /><label for="write">Write</label></li>
</ul>
</dd>
HEREDOC;
When I take it out, the script is fine. When it's in, I get an "unexpected $end" error for the last line of the file.
The HEREDOC; bit isn't indented, and I don't know what else could be going wrong here. Any ideas? Thanks!
ETA:
Thanks so much for all the help to all who responded. It turned out to be my file format -- I've got the right line break types now, and all is well. Huzzah.
$checkbox_markup = <<<HEREDOC
<dt>Access</dt>
<dd>
<ul>
<li><input type="checkbox" class="checkbox" name="access[]" value="read" id="read" /><label for="read">Read</label></li>
<li><input type="checkbox" class="checkbox" name="access[]" value="write" id="write" /><label for="write">Write</label></li>
</ul>
</dd>
HEREDOC;
When I take it out, the script is fine. When it's in, I get an "unexpected $end" error for the last line of the file.
The HEREDOC; bit isn't indented, and I don't know what else could be going wrong here. Any ideas? Thanks!
ETA:
Thanks so much for all the help to all who responded. It turned out to be my file format -- I've got the right line break types now, and all is well. Huzzah.
