【发布时间】:2021-09-08 04:42:23
【问题描述】:
当我需要为我的 PHP 代码打开本地主机站点 https://localhost:8000 时。 所以我在我的 VS 代码终端中写了这一行
php -S 本地主机:8000
但我遇到了错误。
复制粘贴
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
【问题讨论】:
标签: php visual-studio-code terminal localhost