this did help my problem, but now i seem to have run into another one... totally unrelated but in the same project, so i decided to addon instead of make a new post... here is what i have now
<?
require ('etcdata.php');
$includepre = $_SERVER['QUERY_STRING'];
$inc = '.inc';
$exist = $includepre . $inc;
clearstatcache();
if(file_exists($exist)) {
$include = $exist;
$title = $includepre . 'title';
} else {
$include = 'main' . $inc;
$title = $maintitle; }
?>
now this "works" perfectly fine... however, i need this line
$title = $includepre . 'title';
to be a varible, not text. does anyone have an idea on how this can be done? btw, i did tried adding '$' . of course that just put a $ in front of the text, which remained text. thx again for anyone reading this!