title: How to run a codeigniter controller function using exec command in php
body: <p>I am using xampp with my local window system.
  now a day I am working with codeigniter, I am trying to run a mycontroller function as a background job. Like</p>
  
  <pre><code>class Admin extends MX_Controller{
      function __construct(){
          parent::__construct();
      }
  
      function index(){
          echo "working";
          $command = "D:\xampp\php\php D:\xampp\htdocs\client\newslatter\index.php  admin preget";
          echo $out = exec( $command);
          echo "here";
      }
  
      function preget(){
          echo "&lt;br/&gt;Done!!!!!!";
      }
  }
  </code></pre>
  
  <p>I am not able to run a function using exec command can any one help out my problem?.</p>