In the DirectAdmin panel, go to the "cronjobs" section, I assume that you have already set the time interval for your cronjob, so you just need to configure the "command" parameter, so try:
First option:
/usr/bin/php -f /home/your_user/public_html/your_script.php
This way you will call the php script using the php interpreter.
The second option:
lynx -source http://yourdomain.com/your_script.php
This way you will perform a text interpretation of the lynx web browser and open the required URL so that you can run the php script. Lynx is installed by default on most Linux servers.
I also believe that there is an option in the DirecAdmin cronjobs section called "Prevent Email" so that you do not receive emails.
Develoger
source share