Execution of "required" code in php
<p>I have some files:</p>

<p><strong>core.php</strong>:</p>

<pre><code>require_once 'logger.php';
require_once 'smth_else.php';

$Logger = new Logger();
$Else = new Smth_else();
</code></pre>

<p><strong>smth_else.php</strong>:</p>

<pre><code>...
$Logger-&gt;write(...);
...
</code></pre>

<p>And get: </p>

<blockquote>
  <p>Notice: Undefined variable: Logger in
  smth_else.php...</p>
</blockquote>
