Basic PHP problems
<p>When I use this function variables created by the included scripts are retained within the scope of this function.</p>

<pre><code>function reqscript($script)
{
    $include_dir = 'inc/';
    $page_ext = '.php';
    include($include_dir.$script.$page_ext);
}
</code></pre>

<p>Is there any way of me not having to use the following method?</p>

<pre><code>include(buildfilename('...'));
</code></pre>
