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. /*

Linux Tip | How To Automate Tasks using Cron

A look at the Cron utility and how you can use it to automate commands. Please be sure to give EzeeLinux a 'Like' on Facebook! Thanks! https://www.facebook.com/EzeeLinux Check out

Windows Task Scheduler, Launch a Web page

In this lesson, we are going to learn how to launch a web page, within the chosen Web Browser. This comes in handy, if you need to update records at a certain time every day of the week. This lesson


  • 123cake123
    This works with many different languages right?
  • 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
  • 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 ?