can't get variables in function : <p>I have a translate system:</p>

<p>/phps/languages.php</p>

<pre><code>$root = $_SERVER['DOCUMENT_ROOT']; 
if($lang == "en-us"){
    include_once("$root/site-languages/en-us.php"); // include en-us
}
</code></pre>

<p>this function:
/phps/date.php</p>

<pre><code>function time_difference($date){

$root = $_SERVER['DOCUMENT_ROOT']; 
include_once("$root/phps/languages.php");

echo $language_include_variable; // it is empty
</code></pre>

<p>and my page.php that will call date.php and date calls languages.php.</p>

<pre><code>$root = $_SERVER['DOCUMENT_ROOT']; 
include_once("$root/phps/date.php");
</code></pre>

<p>The problem is the echo $language_include_variable is null.
any ideas?</p>
