Request for run the codeigniter method from batch file |
I need run controller method from batch file with windows scheduler using windows 7 and windows 8
in my batch file: C:\xampp\htdocs\directwave>C:\xampp\php\php.exe index.php messages send_auto found below error in cmd prompt <h4>A PHP Error was encountered</h4> <p>Severity: Warning</p> <p>Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\directwave\system\core\Exceptions.php:186)</p> <p>Filename: libraries/Session.php</p> <p>Line Number: 689</p> </div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;" > <h4>A PHP Error was encountered</h4> <p>Severity: Warning</p> <p>Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\directwave\system\core\Exceptions.php:186)</p> <p>Filename: helpers/url_helper.php</p> <p>Line Number: 543</p> can u plz help me
A think that a batch file can access CI controllers only from CLI. Sessions only work for browsers. http://www.codeigniter.com/userguide3/general/cli.html
Website: http://avenir.ro
|
Welcome Guest, Not a member yet? Register Sign In |