Recommended Answers
Jump to PostWhy do you need a script to run every 10 seconds? There has to be a more efficient way to do whatever it is you are trying to do.
Jump to PostCron jobs are your easiest solution.
Another method would be making 2 PHP scripts to bounce off of each other.File 1: Run the target script wait 10 seconds and call File 2.
File 2: Run target scritpt wait 10 seconds call File 1.
It would be …
Jump to PostOr you can simply ad
header('refresh:10; url=same_page.php');
Jump to PostOr you can simply ad
header('refresh:10; url=same_page.php');
Once this is setup and we go to the script URL.
this header() function will active.Will i run in a continuous loop forever? or only if the script is being viewed by a user.
Secondly, if this is …
All 13 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.