http://localhost/phpinfo.php未显示 [英] http://localhost/phpinfo.php not displayed

查看:141
本文介绍了http://localhost/phpinfo.php未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照安装的步骤进行操作和配置PHP:官方Microsoft IIS站点 [ ^ ]一步一步。在第22步之后,我在我的C:\ Inetpub \ www.root \文件夹中创建了

 phpinfo.php 

。然后我尝试在浏览器上打开它: http://localhost/phpinfo.php [ ^ ]。但是,浏览器上显示的结果是:

没有指定输入文件。

,而不是PHP信息。我的设置可能有什么问题?谢谢。

解决方案

通常的问题是:出于安全考虑,在PHP配置中禁用此功能。如果您使用共享主机并且无法控制它,通常的解决方案是在您可以安装所有内容的本地主机上进行开发。



我们无法使用http://localhost/phpinfo.php解决您的问题,因为您没有提供有关文件phpinfo.php中的内容的任何信息如果这个文件甚至存在。我不能确定你是否安装了PHP。您只需要拨打 phpinfo

PHP:phpinfo - 手册 [ ^ ]。



没有什么可能需要任何解释。



-SA

Following the procedure on Install and Configure PHP : The Official Microsoft IIS Site[^] step-by-step. After Step 22 where I created

phpinfo.php

in my C:\Inetpub\wwwroot\ folder. Then I tried to open it on a browser: http://localhost/phpinfo.php[^]. However,the results displayed on the browser is:

No input file specified.

, rather than the PHP information. What could be wrong in my setup? Thanks.

解决方案

The usual problem is: this function is disabled in PHP configuration, for safety purposes. If you use shared hosting and cannot control it, the usual solution is to do development on your local host where you can install everything.

We cannot solve your problem with "http://localhost/phpinfo.php" because you did not provide any information on what's in your file "phpinfo.php" and if this file even exists. I cannot be sure that you even installed PHP. All you need is to call phpinfo:
PHP: phpinfo - Manual[^].

There is nothing which would possibly need any explanations.

—SA


这篇关于http://localhost/phpinfo.php未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆