Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 80059

PHP - Program redirects to itself but this does not work when launched by CRON

$
0
0

I have a program that calls itself iteratively.

redirect($_SERVER["PHP_SELF"]);

function redirect($url,$seconds=0) { 
$html="<html><head><meta http-equiv='refresh' content='$seconds; URL=$url'></head></html>";
echo $html;
exit();
}

If I start it from the URL it works great, but if I launch it with CRON it does not work.

Is there another way to make a program call itself that will work with CRON?


Viewing all articles
Browse latest Browse all 80059

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>