How to use a PHP class from another file
<p>Let's say I've got two files <strong>class.php</strong> and <strong>page.php</strong></p>

<p><strong>class.php</strong></p>

<pre><code>&lt;?php 
class IUarts {
    function __construct() {
        $this-&gt;data = get_data('mydata');
    }
}
?&gt;
</code></pre>

<p>That's a very rudamentary example, but let's say  I want to use:</p>

<pre><code>$vars = new IUarts(); 
print($vars-&gt;data);`
</code></pre>

<p>in my page.php file; how do I go about doing that? If I do <code>include(LIB.'/class.php');</code> it yells at me and gives me <code>Fatal error: Cannot redeclare class IUarts in /dir/class.php on line 4</code></p>
