| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
welcome.tpl php include? | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||||
|
|||||||||
|
How can I run a php script that is in a different directory?
My x-cart is in the root and the php script is in /blog/ I know how to add this to welcome.tpl but do I also need an include? {Literal} <?php dynamic_content_gallery(); ?> {/Literal}
__________________
X-Cart Gold 4.1.12 / XC SEO / AOM / Google Checkout / PayPal |
|||||||||
|
#2
|
|||||||
|
|||||||
|
{php}
{include file="/blog/script.php"} dynamic_content_gallery(); {/php} Just be aware of two things: 1) You shouldn't be using PHP in .tpl files. 2) It probably won't work due to X-cart and your blog having the same name PHP functions. |
|||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||