Re: include_php path
| From: | Monte Ohrt | Date: | Fri, 28 Dec 2001 15:20:40 +0000 |
| Subject: | Re: include_php path | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2406@lists.php.net to get a copy of this message | ||
Yes, it should work just fine. You should be able to use an absolute
path like "$path_var/include_file" where $path_var is an assigned
template var, or make the path relative to $trusted_dir.
Ron Dyck wrote:
>
> I'm using an absolute path in 'include_php' and I'd like to use a constant
> or variable to make it easier when uploading to live server with different
> path.
>
> The file is not in the web server document root but in a sub-directory
> beside the document root.
>
> Is it possible to do something like: {include_php
> file="$path_var/include_file"} Where $path_var is a global setting.
>
> Any help would be appreciated.
>
> =======================
> Ron Dyck
> WebbTech
> www.WebbTech.net
> rhd@webbtech.net
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/