![]() |
welcome.tpl php include?
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} |
Re: welcome.tpl php include?
{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. |
All times are GMT -8. The time now is 09:38 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.