Hello, I have a site that runs and must launch a CRON task all X periods.
This task imports orders into a commercial administration software.
This one is in PHP 5.6 php-fpm on easyapache4
The import of the commands in manual works, but in automatic, task CRON I have this error:
Fatal error: Uncaught Error: Call to undefined function eregi() in /home/xxxxx/public_html/scripts/ecommerce/ws_import.php:32
Stack trace:
#0 {main}
thrown in /home/xxxxx/public_html/scripts/ecommerce/ws_import.php on line 32
Import end dim. mars 18 10:50:02 CET 2018
Line 32 of this file is:
Thanks for your help
This task imports orders into a commercial administration software.
This one is in PHP 5.6 php-fpm on easyapache4
The import of the commands in manual works, but in automatic, task CRON I have this error:
Fatal error: Uncaught Error: Call to undefined function eregi() in /home/xxxxx/public_html/scripts/ecommerce/ws_import.php:32
Stack trace:
#0 {main}
thrown in /home/xxxxx/public_html/scripts/ecommerce/ws_import.php on line 32
Import end dim. mars 18 10:50:02 CET 2018
Line 32 of this file is:
Code:
if (eregi ('([^ \\\ /] +) $', $ script_file, $ reg)) $ script_file = $ reg [1];