使用php动态创建cron作业

使用php动态创建cron作业,php,cron,Php,Cron,我需要在推特上通过php的时间,日期由用户设置推特。为此,我计划使用通过php动态创建的Cron作业 任何人都可以告诉我如何仅通过PHP创建cron作业。在服务器中设置cron url。同时设置间隔。为什么不使用Cronjob 如果只想通过PHP创建cron作业,那么必须通过以下方式运行PHP文件:必须触发 网站的主index.php文件 <?php if (hour == 14) include cron.php and call function or class method et

我需要在推特上通过php的时间,日期由用户设置推特。为此,我计划使用通过php动态创建的Cron作业


任何人都可以告诉我如何仅通过PHP创建cron作业。

在服务器中设置cron url。同时设置间隔。

为什么不使用Cronjob

如果只想通过PHP创建cron作业,那么必须通过以下方式运行PHP文件:必须触发

网站的主index.php文件

<?php
 if (hour == 14) include cron.php and call function or class method etc.
?>