Parse Error... how to fix?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All... 
Got a problem...  here is the error: Parse error: parse error,
expecting `T_STRING' or `T_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>";
}

?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux