I am completely new to PHP, and am enrolled in an online PHP class. So far I love PHP, but I can already tell it would be much more easily learned from a real life, flesh and blood teacher.
Anyways, I am working on a simple homework assignment that asks me to code a Web page that echos text using the "here document" syntax. The textbook basically gives me the code to copy into my own file, which I have done, but after loading my completed code in a browser I get the error:
"Parse error: parse error, expecting `T_VARIABLE' or `T_END_HEREDOC' or `T_DOLLAR_OPEN_CURLY_BRACES' or `T_CURLY_OPEN' in C:\Web\www\Chapter.02\Aquaculture.php on line 22"
My code is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
content="text/html; charset=iso-8859-1" />
<p>According to the online edition of the Columbia Encyclopedia,
<strong>aquaculture</strong> is the raising and harvesting of
fresh and saltwater plants and animals. The most economically
important form of aquaculture is fish farming, an industry that
accounts for nearly 20% of world fisheries production, and is
steadily increasing its share.</p>
Any help would be greatly appreciated!
Also, if anyone would like to recommend some useful PHP tools to a complete beginner, that would also be nice. I am currently using EasyPHP and Notepad++ to do everything.