php class not found when it is included
<p>I have a class in php called "SEO_URL". At a point in that class I have this </p>

<pre><code>$class_name = "cPath_SEO_URL";
return $class_name::href(); 
</code></pre>

<p>and I get</p>

<pre><code>Fatal error: Class 'cPath_SEO_URL' not found in
...\includes\classes\seo.class.php on line 52
</code></pre>

<p>The thing is I have included the class on top of SEO_URL</p>

<pre><code>include_once(/path/to/my/class);
class SEO_URL{

}
</code></pre>

<p>and I get that error.</p>

<p>However, when I hard-code the class on top of the class SEO_URL it works. So this works.</p>

<pre><code>class cPath_SEO_URL{
    function cPath_SEO_URL(){}
    function href() { return "CPathHref"; }
}
class SEO_URL{
...
       $class_name = "cPath_SEO_URL";
       return $class_name::href(); 
...
}
</code></pre>

<p>and this doesn't</p>

<pre><code>include_once(/path/to/my/class);
class SEO_URL{
...
       $class_name = "cPath_SEO_URL";
       return $class_name::href(); 
...
}
</code></pre>

<p>I am trying this in oscommerce.</p>

<p>Why is that?</p>
