php - CRON jobs with go daddy hosting

one text

I'm using CodeIgniter as my framework and I want that every minute, alert will appear on my website. (This code are just for testing... My main code for cron have queries.)

This is my controller:

 <?php
class alert extends CI_Controller {
    public function __construct() {
        parent::__construct();
         $this->load->view("alert_view.php");
    }
    
    public function index()
    {
        $this->load->view("alert_view.php");
    }

}

?>

And This is my View:

<script>
    alert("SCHEDULED ALERT EVERY MINUTE");
</script>

I tested it on the browser: http://www.mywebsite.com/NameOfMyFolderInHosting/alert and it worked.

I tried cron in GoDaddy using curl, wget, php-CLI, PHP, usr/local/bin/php, usr/bin/php, /usr/local/bin/php /home/username/public_html/path/to/cron/script, /usr/local/bin/php /home/username/public_html/path/to/cron/script controller function, and many more, I tried almost everything and nothing worked.

Source