Call schedule from other schedule

bonghetti

Member
Hi,
I ask for some suggestions on this. I have schedulers where I have a series of procedures and queries, and some of these, in some cases are repeated in some scheduler. I wonder if it's possible, instead of having to rewrite the code in all the schedulers...and in case of an upgrade having to do it...and remember...in all, to be able to call one scheduler from another. What php code do you suggest me about it? just open the link? (curl?) or something else? Thank you in advance
 
Hi,
in this case, I answer myself after testing and researching about it. Shared for convenience to others

$url = "https://domain.it/app/index.php?fabrik_cron=name_scheduler";

$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

$resp = curl_exec($curl);
curl_close($curl);
var_dump($resp);
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top