Problem in accessing function of a class
<p>Here is my index.php in this suppose i am calling the <code>command getresellers</code> it calls the <code>getresellers</code> function of <code>Reseller</code> class </p>

<pre><code>$_command=$_REQUEST['_command'];
$dbs = new Databases();

switch($_command)
{
    case 'getresellerscount' :
        $rd=new Resellerdashboard($dbs);
        echo  $msg=$rd-&gt;getresellerscount();
        // echo Config::json_format($msg);
        // exit;
        break;
    case 'getresellers' :
        $rd=new Reseller($dbs);
        echo  $msg=$rd-&gt;getresellers();
        // echo Config::json_format($msg);
        // exit;
        break;
    default :
}

function __autoload($class_name) {
    include $class_name . '.php';
}
</code></pre>

<p>Here is my Reseller Class which want to call the ResellerDashBoard Class function But the error is coming </p>

<pre><code>Class Reseller
 {
     private $dbs;

    public function __construct(Databases $dbs)
    {
        $this-&gt;dbs = $dbs;
    }
    /**
    *
    * function for getting resellers 
    *
    **/
    public function getresellers() 
    {
        list($fromdate,$todate)=ResellerDashBoard::getdate();
        $data_query="
            SELECT firstname,lastname,mobile,email,tmecode,tmename,updatedon,apptype,alloctype,empparent 
            from tbl_reseller_dashboard_intermediate 
            where empparent='".$_GET['city']."' ".$condition." 
                and updatedon&gt;='".$_REQUEST['fromdate']." 00:00:00' and updatedon&lt;='".$_REQUEST['todate']." 23:59:59' ";

        $result=$this-&gt;dbs-&gt;resellerdashboarddb-&gt;getResult($city);        



    }
 }
</code></pre>

<p>The error coming is </p>

<pre><code>&lt;br /&gt;
&lt;b&gt;Warning&lt;/b&gt;:  include(ResellerDashBoard.php) [&lt;a href='function.include'&gt;function.include&lt;/a&gt;]: failed to open stream: No such file or directory in &lt;b&gt;/home/abhijitnair/sandbox/newresellerdashboard/api/index.php&lt;/b&gt; on line &lt;b&gt;38&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Warning&lt;/b&gt;:  include() [&lt;a href='function.include'&gt;function.include&lt;/a&gt;]: Failed opening 'ResellerDashBoard.php' for inclusion (include_path='.:/usr/local/lib/php') in &lt;b&gt;/home/abhijitnair/sandbox/newresellerdashboard/api/index.php&lt;/b&gt; on line &lt;b&gt;38&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Fatal error&lt;/b&gt;:  Class 'ResellerDashBoard' not found in &lt;b&gt;/home/abhijitnair/sandbox/newresellerdashboard/api/Reseller.php&lt;/b&gt; on line &lt;b&gt;45&lt;/b&gt;&lt;br /&gt;
</code></pre>

<p>Please suggest what best should i do to access the Reseller DashBoard Function ?</p>
