0

when I need to open localhost site https://localhost:8000 for my PHP code. So I wrote this line in my VS code terminal

php -S localhost:8000

But I am getting error.

copied and pasted

php : The term 'php' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
included, verify that the path is correct and try again.
At line:1 char:1
+ php -S localhost:8000
+ ~~~
    + CategoryInfo          : ObjectNotFound: (php:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Barmar
  • 669,327
  • 51
  • 454
  • 560

1 Answers1

0

Please take a look at php : The term 'php' is not recognized as the name of a cmdlet, function, script file, or operable program

Dev Utkarsh
  • 1,153
  • 2
  • 16
  • 39