using .conf file variables in PHP scripts
| From: | erim foster | Date: | Wed, 19 Feb 2003 23:18:53 +0000 |
| Subject: | using .conf file variables in PHP scripts | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7957@lists.php.net to get a copy of this message | ||
Hello,
I'm trying to use variables set in my .conf file within a PHP script. I have several variables set in the .conf file that I need to use in a PHP script to generate a thumbnail gallery of images.
Is there a way to do this? Everything I've tried so far suggest that .conf variables aren't visible within the {php}{/php} tags.
In essence, I'm trying to do this:
{php}
$firstVar = {#firstConfVar#}
function myFunction() {
do some stuff with $firstVar
}
{/php}
I know this is not the best way to go about this, but I'm using .conf file variables in lieu of a database for the time being. This could be a simple question, so please forgive me if so. I'm new to this Smarty stuff.
Thanks,
-e