Hi,
I have set php version 5.6 in php configuration (default is 5.4)
in order to use PHP: array_filter - Manual
All ok on php site
but not in cronjob
I created a cron:
cd /home/xxxxx/public_html/backend/cronjob/; php cron.php
but it fails and returns error <b>Warning</b>: array_filter() expects at most 2 parameters, 3 given in.... (feature available only from php version 5.6)
I tried to force cron to use php version 5.6 with
/opt/php56/lib/php -q /home/xxxxxx/public_html/backend/cronjob/cron.php
but I get the error
/usr/local/cpanel/bin/jailshell: /opt/php56/lib/php: is a directory
how can I use php version 5.6 with cron?
I have set php version 5.6 in php configuration (default is 5.4)
in order to use PHP: array_filter - Manual
All ok on php site
but not in cronjob
I created a cron:
cd /home/xxxxx/public_html/backend/cronjob/; php cron.php
but it fails and returns error <b>Warning</b>: array_filter() expects at most 2 parameters, 3 given in.... (feature available only from php version 5.6)
I tried to force cron to use php version 5.6 with
/opt/php56/lib/php -q /home/xxxxxx/public_html/backend/cronjob/cron.php
but I get the error
/usr/local/cpanel/bin/jailshell: /opt/php56/lib/php: is a directory
how can I use php version 5.6 with cron?