PHP Variable can be read in local enviroment, but not in live
<p>I have a local server running on my laptop that I test my sites on and I have noticed when I uploaded a current site to the live server part broke. I found that the error was caused by a function opperating like this</p>

<pre><code>$other=1;
function example(){
$variable =1+$other;
return $variable;
}
</code></pre>

<p>But that if I put the variable $other into the function it worked fine. Obviously there are different settings on the local server compared to the live, but what makes this happen?</p>
