I recently was working with composer and php and now when I try to access any one of my other files through localhost/foldername/file1.php etc, I receive the above error in the CMD. I uninstalled composer and deleted the environmental variable and restarted WAMP but I still cannot access folders in localhost. When I type in localhost it takes me to one particular folder found at C:\wamp64\www\Laravel. I know it has something to do with having PHP in my PATH but what does this mean? Please help me!
I meet the same problem on Wamp version 3.1.4_x64 with PHP version 7.2.10 and now it working for me!
It not need a path on a PHP version in the Windows PATH environment variable. So you must remove this path from your environment variable. And next step just Exit Wamp and open again!
I hope that my answer i'll help you. Good luck guys :)