I hope you're all doing well. I have a question regarding using crontab and passing a variable to it, which I then need to read from PHP.
So, here's the situation. I have a cron job set up using crontab, which runs a PHP script at a specific time. This PHP script needs to be able to read a variable that I pass to it through the crontab command.
I've already tried looking for a solution online, but I couldn't find any clear answers. It seems like a straightforward problem, but I just can't figure out the best way to do it.
Does anyone have any experience with this? How can I pass a variable to crontab and then access it from within my PHP script?
Any help would be greatly appreciated. Thanks in advance!