run a php automatically after every hour

后端 未结 3 1800
隐瞒了意图╮
隐瞒了意图╮ 2021-01-07 01:09

I am using a shared windows hosting in which sending 120 mails/hour is allowed though php code. i have a php page to send emails more than 200 mails at a time.But i want to

相关标签:
3条回答
  • 2021-01-07 01:51

    Use a script on Google AppEngine to "ping" yours (Scheduled Tasks to be more precise). It's free to use.

    0 讨论(0)
  • 2021-01-07 01:53

    You can schedule a task in Windows - control panel->administrative tools is where you find task scheduler.

    0 讨论(0)
  • 2021-01-07 02:08

    Use PHP Cron Jobs with cPanel

    cPanel Simple Cron

    you can get started with the simple cron tool built into cPanel. The url for it is:

    https://www.yoursite.com/page.php

    The command to run:

    /usr/local/bin/php -f /home/(username)/public_html/page.php
    

    Next you'll want to select an option from all the select boxes. Remember to select an option in each box. If you want something to run every hour, select Minute: 60; Hour:Every; Day: Every; Month: Every; Weekday: Every;

    Click save and you are all set! You'll get an email every time the cron job runs, but if you don't want to get it - put :blackhole: into the output email field at the top.

    0 讨论(0)
提交回复
热议问题