Tag: CRON

  • Use a cron job to fetch a JSON endpoint in PHP

    by

    in

    A cron job is a scheduled task that runs automatically at specified intervals on a Unix-based operating system. The name “cron” comes from the Greek word “chronos”, which means “time”. Cron is a time-based job scheduler in Unix-like operating systems. Users that set up and maintain software environments use cron to schedule jobs (commands or…

  • Running a function once a day in PHP

    by

    in

    There are a few ways you can run a function once a day in PHP. 1. Use a CRON job A CRON job is a time-based task scheduler in Unix-like operating systems. To set up a CRON job, you will need to have access to the command line and be able to edit the CRON…