I'm trying to get Composer to install, and I keep getting an error message:
PHP: syntax error, unexpected "!" in C:\php\php.exe on line 1
So I thought there was a problem with Composer or its installer..... but then I opened a Command Prompt and entered
php -v
...and it returned this:
PHP: syntax error, unexpected "!" in C:\php\php.exe on line 1
PHP 7.4.8 (cli) (built Jul 9 2020 11:30:33) (NTS Visuaal C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright Zend Technologies
So php is there, and the command line even returns the correct version info,... but first it also gives me the same error message I get when trying to install Composer.
I've uninstalled and re-installed php a few times now, restarted IIS, uninstalled the failed installation of Composer, started from scratch - no difference at all.
My web browser opens php pages on my localhost server without a hitch.
I need to get Composer running before I can install yet another app, so I'm dead in the water until I figure this out.
Thanks!
PHP: syntax error, unexpected "!" in C:\php\php.exe on line 1
So I thought there was a problem with Composer or its installer..... but then I opened a Command Prompt and entered
php -v
...and it returned this:
PHP: syntax error, unexpected "!" in C:\php\php.exe on line 1
PHP 7.4.8 (cli) (built Jul 9 2020 11:30:33) (NTS Visuaal C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright Zend Technologies
So php is there, and the command line even returns the correct version info,... but first it also gives me the same error message I get when trying to install Composer.
I've uninstalled and re-installed php a few times now, restarted IIS, uninstalled the failed installation of Composer, started from scratch - no difference at all.
My web browser opens php pages on my localhost server without a hitch.
I need to get Composer running before I can install yet another app, so I'm dead in the water until I figure this out.
Thanks!