Comment appeler PHP dans mon script Cron ?

Dans l’environnement Cron, différentes versions de PHP sont disponibles. PHP doit donc être appelé avec le chemin absolu vers l’interpréteur PHP correspondant :

Version PHPChemin
5.6/opt/php-5.6/bin/php
7.0/opt/php-7.0/bin/php
7.1/opt/php-7.1/bin/php
7.2/opt/php-7.2/bin/php
7.3/opt/php-7.3/bin/php
7.4/opt/php-7.4/bin/php
8.0/opt/php-8.0/bin/php

N'hésitez pas à vous inscrire à notre newsletter



Nous vous remercions de votre inscription à la newsletter hosting.fr.
Cronjob PHP Script