如何在 Windows 托管服务器上运行 .php 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4982838/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to run .php file on windows hosting server
提问by Yogesh Kumar
I've windows hosting and I've developed a php web application, when I'm hosting my application under root directory (web) creating new directory. When i try to access the index.php, it gives me error "bad server request" bla bla bla.
当我在创建新目录的根目录 (web) 下托管我的应用程序时,我有 Windows 托管并且我已经开发了一个 php web 应用程序。当我尝试访问 index.php 时,它给了我错误“服务器请求错误”bla bla bla。
Please tell me how to fix this problem?
请告诉我如何解决这个问题?
回答by Sudantha
First check if the PHP is properly installed just upload a page with this coding and see if u get a response <?php phpinfo(); ?>
首先检查 PHP 是否安装正确,只需上传带有此编码的页面,看看您是否得到响应 <?php phpinfo(); ?>
if no response..
如果没有反应..
Please contact your hosing provider . Windows servers doesn't support php extensions you need to change to a linux server or a upgrade
请联系您的软管供应商。Windows 服务器不支持 php 扩展,您需要更改为 linux 服务器或升级
is it running in your local machine you can install php extensions using Microsoft web platform installer
它是否在您的本地机器上运行,您可以使用 Microsoft Web 平台安装程序安装 php 扩展