I have hosted by project on shared hosting where my 'app' folder i outside public_html The php version is 7.3.5, the issue i am having is.. i am have created a cron job to automatically backup the project database but i keep getting this error on my logs;
[08-Jun-2019 21:04:01 UTC] PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /home/username/app-folder/vendor/zendframework/zend-diactoros/src/functions/marshal_uri_from_sapi.php on line 83
I am using spatie/laravel-backup.
My cron is set as
* * * * * php /home/username/app-folder/artisan backup:run
php --version?Route::get('phpinfo', function () { return phpinfo(); });and am getting PHP Version 7.3.5