I have the latest Wamp installed and localhost says I have PHP 7.3.12 but at the command prompt (cmd) I type 'php -ver', I get PHP 5.6.40. I am installing Composer and get the message:
The Windows OneDrive folder is not supported on PHP versions below 7.2.23 and 7.3.10.
Upgrade your PHP (5.6.40) to use this location with Composer.
When I type 'composer' at the command prompt, all is OK.
Following a php/mysql tutorial on youtube, I am setting up swiftmailer, and following instructions, I get
[RuntimeException]
No composer.json present in the current directory, this may be the cause of the following exception.
[InvalidArgumentException]
Package swiftmailer/swiftmailer at version ^6.0 has a PHP requirement incompatible with your PHP version (5.6.40)
The second error message is the one I'm concerned with for now.
How can I change this version of PHP to the latest?
Changing environment variables doesn't change things, either!
The Windows OneDrive folder is not supported on PHP versions below 7.2.23 and 7.3.10.
Upgrade your PHP (5.6.40) to use this location with Composer.
When I type 'composer' at the command prompt, all is OK.
Following a php/mysql tutorial on youtube, I am setting up swiftmailer, and following instructions, I get
[RuntimeException]
No composer.json present in the current directory, this may be the cause of the following exception.
[InvalidArgumentException]
Package swiftmailer/swiftmailer at version ^6.0 has a PHP requirement incompatible with your PHP version (5.6.40)
The second error message is the one I'm concerned with for now.
How can I change this version of PHP to the latest?
Changing environment variables doesn't change things, either!