My host is the type pro (OVH)
I have a problem with laravel 5.1 in Ovh when I type
<b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/home/obliviushc/petite-enfance/artisan</b> on line <b>31</b><br />
<b>Parse error</b>: syntax error, unexpected T_STRING in <b>/home/obliviushc/petite-enfance/artisan</b> on line <b>31</b><br />
<?php phpinfo() ?>
As per the documentation, the minimum PHP version required is:
PHP >= 5.5.9.
It seems the command line is still pointing to the old PHP version, so artisan fails. In order to get the correct path, find where your php is installed, add a script and run it from the browser (i.e. handled by Apache)
<?php echo PHP_BINDIR;
Then add that directory to your PATH variable.
Finally try to remove the old PHP version path, you can find it by running this command in CLI: