Execute a PHP script from another PHP script

后端 未结 11 1661
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 14:04

How would I make my server run a php script by triggering it manually using php? Basically I have a pretty big cronjob file that is ran every 2 hours, but I want to be able

11条回答
  •  鱼传尺愫
    2020-12-02 14:58

    I prefer to use

    require_once('phpfile.php');
    

    lots of options out there for you. and a good way to keep things clean.

提交回复
热议问题