【问题标题】:Why I am getting error when I was trying to open https://localhost:8000为什么我在尝试打开 https://localhost:8000 时出现错误
【发布时间】: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


    【解决方案1】:

    【讨论】:

    • 我配置了XAMPP..其他都很好
    • 非常感谢!!!我真的很感谢你@Dev Utkarsh .. 去爱
    • 很高兴知道它成功了!欢迎来到 Stackoverflow :)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-25
    • 2019-08-03
    • 2020-10-18
    • 2012-11-25
    相关资源
    最近更新 更多