My actual files are layout.php, page1.php, page2.php.
In layout.php I have:
<?php
function tablecontent ($version,$title,$image,$info){
echo ("table code");
}
$idd = "$page."."php";
$id = $idd;
if ($page == null || !$page || $page == "")
{
include ("page1.php");
}
else
{
include ("$id");
}
?>
And in page1.php:
tablecontent ('1','Title','v5.jpg','description blah')
Thats the basic code I'm using.
The if statement includes the file fine, but the function doesn't appear to affect the included file.
What would I need to look for in phpinfo() if it was something to do with configuration?