| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Best way to include external php | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Best way to include external php
Not sure what forum to post...
What is the best way to include (execute) an external php file to an x-cart powered page? When I'm using {include_php file="/path/to/include.php"} in smarty template it gives me all kinds of errors...do I need to put something in the php file itself ? Any help appreciated! |
|||||||
#2
|
|||||||||
|
|||||||||
Try reposting in "Template Editing".
You will likely get an answer faster over there. |
|||||||||
#3
|
|||||||
|
|||||||
you have to escape from smarty by doing this:
{php} include ('normalphpsyntaxhere.php'); echo "Do whatever you want in this are"; echo "I think this should work"; {/php} HTH
__________________
X-Cart 3.4.2 - Processor: Dual Hamsters, running on tricked out 21\" version of Hamster Wheel. (tireless little buggers) No hamsters were harmed during the making of this sig. Several were seriously offended. |
|||||||
#4
|
|||||||||
|
|||||||||
lol, new to me....
(learning....)
__________________
It doesn\'t matter what is done... it is how it is done. ============================= XCart Version: 3.5.3 -> Dmcigars.com XCart Version: 4.1.3.... |
|||||||||
|
|||
X-Cart forums © 2001-2020
|