In php there is a function phpinfo();
which displays a whole load of server stats and config information. What is the equivalent in ASP.NET? is there anything?
在php中有一个函数phpinfo();它显示整个服务器统计信息和配置信息。 ASP.NET中的等价物是什么?有没有什么?
cheers
4 个解决方案
#1
You can now use System.Web.Helpers.ServerInfo.GetHtml()
(in System.Web.Helpers.dll
) which returns an HTML table of all the environment variables, very much like phpinfo() does.
您现在可以使用System.Web.Helpers.ServerInfo.GetHtml()(在System.Web.Helpers.dll中),它返回所有环境变量的HTML表,非常像phpinfo()。
http://msdn.microsoft.com/en-us/library/system.web.helpers.serverinfo.gethtml.aspx
#2
Simple answer: No.
简单回答:没有。
But after enabling tracing for the whole application in the web.config, you can view trace.axd for similiar info.
但是在web.config中启用整个应用程序的跟踪后,您可以查看trace.axd以获取类似的信息。
<configuration>
<system.web>
<trace enabled="true" pageOutput="false" requestLimit="40" localOnly="false"/>
</system.web>
</configuration>
#3
There's not a phpinfo
style function in ASP.NET. I think you can enable tracing in Web.config
and navigate to trace.axd
to see similar stuff.
ASP.NET中没有phpinfo样式函数。我认为您可以在Web.config中启用跟踪并导航到trace.axd以查看类似的内容。
#4
The answer is no, but I think the answer to this question will be helpful to you: How to print similar information as phpinfo() but for ASP.NET?
答案是否定的,但我认为这个问题的答案对您有所帮助:如何打印与phpinfo()相似的信息,但是对于ASP.NET?
#1
You can now use System.Web.Helpers.ServerInfo.GetHtml()
(in System.Web.Helpers.dll
) which returns an HTML table of all the environment variables, very much like phpinfo() does.
您现在可以使用System.Web.Helpers.ServerInfo.GetHtml()(在System.Web.Helpers.dll中),它返回所有环境变量的HTML表,非常像phpinfo()。
http://msdn.microsoft.com/en-us/library/system.web.helpers.serverinfo.gethtml.aspx
#2
Simple answer: No.
简单回答:没有。
But after enabling tracing for the whole application in the web.config, you can view trace.axd for similiar info.
但是在web.config中启用整个应用程序的跟踪后,您可以查看trace.axd以获取类似的信息。
<configuration>
<system.web>
<trace enabled="true" pageOutput="false" requestLimit="40" localOnly="false"/>
</system.web>
</configuration>
#3
There's not a phpinfo
style function in ASP.NET. I think you can enable tracing in Web.config
and navigate to trace.axd
to see similar stuff.
ASP.NET中没有phpinfo样式函数。我认为您可以在Web.config中启用跟踪并导航到trace.axd以查看类似的内容。
#4
The answer is no, but I think the answer to this question will be helpful to you: How to print similar information as phpinfo() but for ASP.NET?
答案是否定的,但我认为这个问题的答案对您有所帮助:如何打印与phpinfo()相似的信息,但是对于ASP.NET?