I made a cron script located at /public_html/cron/script.php with this code:
<?php
include('../includes/functions.php');
foreach(get_sites_list() as $item){
update_posts_list($item);
}
//Log to a txt file to make sure the script is executed
date_default_timezone_set('Africa/Tunis');
$log_message = 'Run at ' . date('Y-m-d H:i:s') . "\n";
$file = fopen('log.txt', 'a+');
fwrite($file, $log_message);
fclose($file);
?>
It basically loops through the database and updates it.
Unfortunately, the script hasnāt been executed even once
I donāt know whatās wrong with it. I made sure it works properly by going to mywebsite.com/cron/script.php and saw the database and log file successfully updated.
Why 000webhost wonāt execute it then?
P.S: functions.php is located under /public_html/includes/
@ckhawand More than 10 minutes have passed and still the cronjob hasnāt run 

