Horje
how to run php script every 5 minutes Code Example
how to run php script every 5 minutes
It would not surprise me that a hosting service would protect its servers from getting overloaded with long-running scripts, and would configure a time-out after which such scripts are aborted (see PHP: Runtime Configuration Settings and max_execution_time in particular).

If you have a PC that can stay turned on, an alternative solution would be to let it send a request to the server every 5 minutes:

############################################################################
<?php
    // Your PHP code that has to be executed every 5 minutes comes here
?>
<script>
setTimeout(function () { window.location.reload(); }, 5*60*1000);
// just show current time stamp to see time of last refresh.
document.write(new Date());
</script>
############################################################################




Php

Related
php class tostring Code Example php class tostring Code Example
woocommerce get the price from session after add to cart Code Example woocommerce get the price from session after add to cart Code Example
add action hook Code Example add action hook Code Example
join with 2 table where id match in table 1 comma separated Code Example join with 2 table where id match in table 1 comma separated Code Example
PHP catch eval output Code Example PHP catch eval output Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9