1

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
  • 741,623
  • 53
  • 500
  • 612

1 Answers1

2

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,377
  • 2
  • 18
  • 43