How to execute multiple php file with 1 cron job

ساخت وبلاگ
Hello,

I would like to know what would be the best way to organize this please.

I have at the moment 5 php files which need to start via cron job(same time).
I would like to only enter 1 single cron path in my cpanel and have this file linked to the other 5 cron files.

ie:

path to cron:

server_name/public_html/cron/cron.php

Inside cron.php I would like to execute:
server_name/public_html/cron/file1.php
server_name/public_html/cron/file2.php
server_name/public_html/cron/file3.php
server_name/public_html/cron/file4.php
server_name/public_html/cron/file5.php

The reason I need to do this is because each time I have an issue, I have to stop manually 5 cron jobs (more will be added), I would rather stop only 1 that stops all the other scripts.

I am wondering if a simple "include" would do the trick.

Thanks,
CodingForums...
ما را در سایت CodingForums دنبال می کنید

برچسب : نویسنده : codingforums بازدید : 211 تاريخ : سه شنبه 6 شهريور 1397 ساعت: 7:47