My script's template system uses tpl files. In tpl files, you can only use $value. If you use include("file");
it would be bad because the included file contains appear at the very top of the page. I mean, how to include file instead of include("file.php");
is there anyway to include file with function or anything else ?
I'm not fully sure I'm understanding so I hope I don't point you in the wrong direction; you might be interested in output buffering. Check out the following Output Control Functions, which will allow you to do something akin to the following;
ob_start(); include('some/file.php'); $somefile = ob_get_clean(); // Contents of the include are now stored in a variable which can be manipulated or echo'd at your mercy.
This is just a very rudimentary example but could be more on the right track?