Skip to content

Tag: cron

Crontab via exec() not working with PHP 7.4 / Deb 10

Bit of a hard one to debug as I’m working with both a new version of PHP and a new OS on a new server. I have a cron management system in PHP that allows me too add / remove or enable / disable cronjobs. On another current Deb 8 server with PHP 7.2 it works flawlessly using the following

PHP architecture – Individual cron job per user

I’m building a website in PHP and need an API to be checked on a regular basis for EACH USER individually. In a nutshell it’s a SaaS to steer a user account on another website with additional/automated options. A web based bot if you want. So basically, I need to dynamically create a new cron job …

File not sending via cron job (PHP script)

I’m trying to create a cron job that sends an email with a file attachment once a day. I’m using a simple PHP script to test this and it works fine when I go to the URL and run it. However, when running it via the cron job, the email is sent but not the file attachment. Here’s my PHP

Cron + PHPMailer Email Queue

I have a doubt, I am thinking of making an email queue and using cron job for this task, but on my website there is an email verification system, I wanted these verification emails to be delivered as quickly as possible, as I could make work? I don’t need a code, just an opinion Answer Don’t do it…