Page 1 of 1

Another way to fire phpJobScheduler

Posted: Tue Dec 16, 2008 7:02 pm
by Sean
Searching through the forum it seems that no one spotted this way before...otherwise, sorry!
The main point is that since I don't have access on cron and I'm not so comfortable with the "click-the-page-to-fire-the-scrip" thing (yes, I'm never sure that someone will click my website!), I use an external server's test website to fire the script every day at the same hour.
There are many sites that provide this kind of service; personally I use externaltest.com (hey, it's free).
Once signed up you can build a new test (HTTP performance type), give a full path pointing to the script (as http://www.mydomain/phpjobscheduler/firepjs.php) and everything is done! Every half-hour, every hour or once a day starting from test's registration time the website will trigger the script for you.
I use it on a daily base with the default phpJobScheduler 60 min time frame window and works like a charm.
Thanks a lot to Mr. Walker for this great piece of software!

Re: Another way to fire phpJobScheduler

Posted: Tue Dec 16, 2008 7:04 pm
by davidgwalker
Hi Sean, and welcome to the forums,

That sounds like a good solution, especially if your website does not get hits every single hour.

Thanks for your input and hope you have a Great Christmas :bigsmurf:

Dave.

Re: Another way to fire phpJobScheduler

Posted: Mon Mar 23, 2009 8:28 am
by davidgwalker
I have received another method of firing the script from Jens (a much appreciated supporter of my software):

    I have a suggestion: In order to avoid that customers are
    faced with the processing delays of the schedules jobs
    (like backup) I restricted the triggering page visits
    to unimportant search engine bots (msn and yahoo):

    Code: Select all

    if ((strpos($_SERVER['HTTP_USER_AGENT'],'msnbot'))  || (strpos($_SERVER['HTTP_USER_AGENT'],'Slurp')))
      include( dirname(__FILE__) . "/pjsfiles/phpjobscheduler.php");

    It only works however, if your page is visited regularly by these bots.

Re: Another way to fire phpJobScheduler

Posted: Mon Oct 26, 2009 7:25 am
by davidgwalker
Probably the easiest way to fire your phpjobScheduler on the new version is to add the following HTML to any page on your website:

Code: Select all

<a href="http://www.phpjobscheduler.co.uk/" title="phpJobScheduler"><img src="http://YOURDOMAIN/phpjobscheduler/firepjs.php?return_image=1" border="0" alt="phpJobScheduler"></a>
Ensure you change 'YOURDOMAIN' to your own domain name!

If your website does not receive enough hits then you can add that html to any web page on any website (not just to the site where phpJobScheduler is installed).

Dave.