SystemJay
10-12-2009, 11:49 AM
Alright..
So I tried something simple to overcome the problem that
I cannot run easly conrjob's in second on LAMP/WAMP. I created
a tiny script that would be developed futher but I came up
with a problem at the beginning.
$secondrunner=0;
while($secondrunner < 3) {
include("runthis.php");
$secondrunner+=1;
//sleepy here
}
I would call this script once a minute, but this script would call another
script more frequently than once a minute. This way I could get a cron job
to happen faster than 1 minute intervals.
problem: First run goes fine of course, but when this script would repeat itself
It cannot of course redeclare the same functions which are in the
"runthis.php" script. Fatal error: Cannot redeclare function().
How can I make the script to forget that the functions are already declared
and so to say start from an empty table? Id like to know the aswer, thanks =)
So I tried something simple to overcome the problem that
I cannot run easly conrjob's in second on LAMP/WAMP. I created
a tiny script that would be developed futher but I came up
with a problem at the beginning.
$secondrunner=0;
while($secondrunner < 3) {
include("runthis.php");
$secondrunner+=1;
//sleepy here
}
I would call this script once a minute, but this script would call another
script more frequently than once a minute. This way I could get a cron job
to happen faster than 1 minute intervals.
problem: First run goes fine of course, but when this script would repeat itself
It cannot of course redeclare the same functions which are in the
"runthis.php" script. Fatal error: Cannot redeclare function().
How can I make the script to forget that the functions are already declared
and so to say start from an empty table? Id like to know the aswer, thanks =)