How to trigger cron manually using URL?

joshshoestring

New Member
Hello there,

I have some PHP cron which I want to trigger manually via URL. I will assign this URL to a button link on the frontend. May I know the URL format to do so?

Thank you!
 
Hi troester,

I think you are referring me to ...
"Require query string - if set to yes then the plugin will only run if the page's URL contains the querystring 'fabrik_cron=1'. Useful to stop processor intensive queries running when a browser requests a page, whilst still allowing server cron jobs to run using wget with &fabrik_cron=1 applied to the url. The simplest way to call this is: 'wget http://yoursite.com/index.php?fabrik_cron=1' or, for systems without wget, 'curl -s http://yoursite.com/index.php?fabrik_cron=1'."

I have several cron task... how do I put in the URL the specific cron task i.e. cron ID no?
 
You can't trigger a single cron task (only in the backend with manual run).
You can create a form with a form php plugin instead a cron task.
 
I need to create a page whereby there are display title, text and several buttons. Each buttons has it's own PHP script. How can I do that with Fabrik?
 
Ok... how to capture if it's button1, button2, etc? I guess the code should be in 'onAfterProcess' ? And how to echo on the screen after my PHP switch?

Also, how do I alter the message
"Message
Record added/updated"

Please excuse me... I'm really new at this :(
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top