Re: Parse Error... how to fix?
| From: | Sam | Date: | Thu, 16 Dec 2004 19:01:39 +0000 |
| Subject: | Re: Parse Error... how to fix? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204528@lists.php.net to get a copy of this message | ||
GH wrote:
Hi All... Got a problem... here is the error: Parse error: parse error, expectingT_STRING' orT_VARIABLE' or `T_NUM_STRING' in /var/www/html/ahrc_computerclub/ahrc_computerclub.php on line 42... I am not sure on how to fix it...line 42 is: "<TITLE> $language['program_name'] </TITLE>\n" .The language.php file only has: $language['program_name'] = "AHRC Computer Club Program Leader Information Managment"; Thank you for any and all assistance provided.... This is the entire ahrc_computerclub.php file: <?PHP ############################################################################# AHRC Program Leader Information Management # # Copyright (C) 2004 by Gary H # # EMAIL INFORMATION HERE ############################################################################# # This project is intended for Gary's use only and not to be distributed # ############################################################################ # include language file include_once("language.php"); ############################################################################# DOCUMENT OUTPUT ###### START ############################################################################# printHeader(); echo $language['program_name']; printFooter(); ############################################################################# DOCUMENT OUTPUT ###### END ############################################################################# ############################################################################ ############################################################################# FUNCTION DEFINITIONS SECTION ############################################################################# function printVersion(){ $version = "0.1"; return $version; } function printHeader(){ echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"\n" . "\"http://www.w3.org/TR/REC-html40/loose.dtd\"><HTML>\n" . "<HEAD>\n" . "<meta name=\"description\" content=\"\" >\n" . "<meta name=\"author\" content=\"Gary H\">\n" . "<meta name=\"keywords\" content=\"\" >\n" . "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n" . "<TITLE> $language['program_name'] </TITLE>\n" . "</HEAD>\n". "<BODY>\n"; } function printFooter(){ echo "\n</BODY></HTML>"; } ?>