Loading...

Run a PHP Script Automatically at a Specified Time

Run a PHP Script Automatically at a Specified Time
Access the full course: https://www.udemy.com/php-email/?couponCode=YAPA1

So you have a PHP script you want to execute on a regular basis. Although you could run it manually, it would be much easier if you could do it automatically. You can do this with cron on Mac and Linux, and with Task Scheduler on Windows.

RRelated Posts

cPanel beginner tutorial 10 - Cron Jobs

In this tutorial I show you how to set up a cron job that will run a script on your site every few minute. You can also set cron jobs to run every hour, every day, once a week or once a year. /*

Timeboxing: Elon Musk's Time Management Method

Get a free audiobook of your choosing and a 30-day trial of Audible at https://www.audible.com/thomas, or by texting "Thomas" to 500-500 on your phone. Huge thanks to Audible for sponsoring this

CComments

  • Alphfirm
    Fantastic explanation, thanks!
  • Faraz salehi
    مرسی :)
  • Faraz salehi
    مرسی :)
  • Janmejay Kumar
    Thanks a lot
  • Sam C
    Nice one Dave :) very helpful indeed.
  • Claudete Naidoo
    with our technology this world is going wild
  • jadeja jaypalsinh
    it is possibel to send 1 mail on every 40seconds to different email ids???
  • Juan Carlos Mendizabal
    Perfect!!!! thanks a lot! clear, visual and lots of resources.
  • Ephrey Ilunga
    Subscribed ! what an explanation! Well done !!!
  • jadeja jaypalsinh
    i want to send mail every 40sec with new email id from database using php.

    plzzzzz anyone help me
  • Rich Williams
    does the hello php.php file contain the script you want to send with a cron?
  • Gedanken
    This is very very nice video, top, but with wrong title. The tutorial is not about php, but cron job.
    Thus i wanted to know about cron jobs, how it works and i never had opportunity to hear about that, it met my knowledge wish, despite of wrong title, where i something others expected. Thank you.
  • Matthew Larrubia
    Hi Dave, Can I run the script on a webpage? I want to learn how to create a script that will input my email address in a field and click submit once a day for x days. Cheers!
  • Hani San
    Run in 1.25 speed and this is perfect.
  • Website Services
    can u give your mail id
  • Yassin YA
    thx
  • jimmyshops
    Well presented, clear and concise. The graphics in the first half help allot.
  • Rienlol Gaming
    Great turtorial, explains the subject at a good and clear speed.
  • baselTV
    i need help ?