[eluser]bogdan3l[/eluser]
Code:
<?php
class Cron extends CI_Controller
{
public function clean()
{
if ($this->input->is_cli_request())
{
// do something
}
else
{
redirect('/');
}
}
}
/usr/local/bin/php /home/username/public_html/index.php cron clean
Any suggestions? Thank you!