X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Best way to include external php (https://forum.x-cart.com/showthread.php?t=5282)

goyo 11-20-2003 09:55 AM

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!

adpboss 11-20-2003 11:45 AM

Try reposting in "Template Editing".

You will likely get an answer faster over there.

shasan 11-20-2003 02:24 PM

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

leon 11-20-2003 11:01 PM

lol, new to me.... 8O
(learning....)


All times are GMT -8. The time now is 12:36 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.