I want to include a tag in a file. I know I can call HTML by echoing the information such as:
//this included above a file
<?php
$called= "<b>what is being called</b>";
?>
//then for it to be called in the file
Whatever <? echo ("$called"); ?>
right?
Ok, so what I want to do is call a small portion of php code. You might ask my why? Well I have 3 separate files using 1 included file with a lot of code. The following tag:
<?php publicfiles("file1","10","no"); ?>
Is in the included file called container.inc. So, I want each file to call a different files tag such as for file 2:
<?php publicfiles("file2","10","no"); ?>
You know where I'm going with this? I'm sorry but I'm sorta a newbie here. Anyway, and I can't do this because obviously it won't work:
//this included above a file
<?php
$called2= "<?php publicfiles("file2","10","no"); ?>";
?>
//then for it to be called in the file
Whatever <? echo ("$called2"); ?>
Or will it work? Please advice, thank you very much!