require and require_once error in php
<p>I am getting this error:</p>

<pre><code>Fatal error: Cannot redeclare class Logger in C:\xampp\htdocs\Speakom\API\Logger.php on line 3
</code></pre>

<p>After changing all my require_once to require, this error still persists. Is there a way to prevent this error? why does it happen if I dont have require_once?</p>

<p>Is there a conditional statment that I could use to query whether the file was included already and then to include it?</p>
