Config variables in PHP-file

From: Date: Tue, 25 Mar 2003 04:41:15 +0000
Subject: Config variables in PHP-file
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8876@lists.php.net to get a copy of this message
Hi, I have a problem to access variables from a config file in an included php-file. The setup is as follows: include_var_1.conf (1 is $customerID in this case): --------------------------------------------------------------------- cus_longname = "Cyprus Company" cus_shortname = "Cyrpus" ... index.tpl: -------------- {assign var=file value="include_var_%d.conf"|sprintf:$customerID} {config_load file=$file scope="global"} ... {include_php file="/.../www/include_searchaudio.inc"} How can I access all the variables from the config file 'include_var_x.conf' in the included PHP file 'include_searchaudio.inc'? I tried several versions but nothing worked. I would be grateful if you could tell me exactly in which files what code belong. Thanks for your help! It is really appreciated and would take me a big step further... Martin ---------------------------------------------------------------------- 0700webhilfe.de Martin Völkening - Geschäftsführer http://www.0700webhilfe.de mailto:martin@0700webhilfe.de Max-Joseph-Str. 18 - 51429 Bergisch Gladbach Fax 0700-WEBHILFE also 0700-93244533 ---------------------------------------------------------------------

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