Page 1 of 1

Script fires each time i refresh

Posted: Mon Apr 16, 2012 11:14 am
by nuckecy
Dear David,

You script is awesome! I have setup everything correctly and scheduled a job to send emails every 10mins. But am experiencing a little problem, each time I refresh the index page on my website it fires a mail. I used the include option. I also tried to schedule 1 hour its still fires a mail.

Please what can I do to fix this?

Best regards

Re: Script fires each time i refresh

Posted: Mon Apr 16, 2012 12:14 pm
by davidgwalker
Hi thanks for you positive comments.

It sounds like it may not be updating the database records when it is firing.

Please let me know what versions you are using:
PHP
MySQL

Thanks

Dave

Re: Script fires each time i refresh

Posted: Mon Apr 16, 2012 5:10 pm
by nuckecy
Hi David,

Thanks for the quick response.

Am using MySQL client version: 5.0.51a and PHP Version 5.2.14.

The records are updating because when it fires I look at it from the backend and try to understand the timing used.

example this is a line of a job i schedule. I replaced the content of Email site stats to boss.php

| 5 |http://192.168.0.30/apps/testing/phpjobscheduler/e...| Email site stats to boss | 600 | 1334576781 | 1334576181 | 0 | 0 |

See if you can help thanks.

Re: Script fires each time i refresh

Posted: Mon Apr 16, 2012 5:55 pm
by davidgwalker
Just tested it on an even newer version of PHP and it is failing to setup the required table in MySQL!

So it needs an update. I will get to it SOME time.... when?!? Not for some time. But if you want to fix it and let post it I will add it to the main release.

If you are interested i knowing when I issue a new release follow me:
https://twitter.com/#!/dwalkercouk
as I post updates there.

Cheers

Dave

Re: Script fires each time i refresh

Posted: Sun Apr 22, 2012 1:27 pm
by davidgwalker
New version now out:
viewtopic.php?f=1&t=1117