Config Files

From: Date: Thu, 30 Oct 2003 00:22:01 +0000
Subject: Config Files
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10467@lists.php.net to get a copy of this message
Hello everyone I am trying to use config files without much success so far. I've got a simple config file called colors.conf, just like this: #Global Variables tdBgColor = "#92B06C" My index.tpl seems like this: {config_load file="colors.conf"} <!-- A lot of HTML code --> <td width="40" valign="middle" bgcolor="{#tdBgColor#}"> <!-- A lot more of HTML code --> Then, when I "run the page" in my browser for the fist time, it looks fine... however, from then on, it keeps throwing the following error: Parse error: parse error in /usr/local/www/mainweb/templates_c/%%370/%% 370767990/colors.conf.php on line 1 If I get rid of the cache files in the template_c folder, the same thing happens again, that is, when run from the first time, it seems to be no problem at all, but from the second time and on I get the error shown above. Does anyone have an idea of what is going on? Thanks a lot. ******************************************************* Wilmar Pérez Network Administrator Library System Tel: ++57(4)2105962 University of Antioquia Medellín - Colombia 2002 *******************************************************

« previous php.smarty.general (#10467) next »