I am building a website in PHP, and i have installed something to send e cards, one of the files to edit the e card look is a tpl file, and the php include does not work on this, how do i use an include on tpl, (which links to a php)
no, on the tpl file i want to include the php file a code i have found, which does not work is [TPL include='http://jokes.onlyican.com/nav_inc.php'] I don;t really want another include, I am already using 3 style sheets to do this site.
No thats not the correct way to use a php includes. The code I gave you is for using in the smarty template system to call another file. If your in a php file calling another, then use this code: <? include('file.php'); ?>
I am using this, and it is still printing everything between the tags {php}include("http://jokes.onlyican.com/nav_include.php");{/php}
ok, well then try this: {literal}<?php include ("http://jokes.onlyican.com/nav_include.php");?>{/literal}
I give up and cheat, just paste the code instead of the include, just means i have to change that when i chage the include
The TPL file was part of a program i installed on my site, in the end i did not like the way it was working, or looking, (beyond changes) so i deleted it. Got something better now. CASE CLOSED