Test Your Server

How to determine what type of server side support your website has available.

It is important to know what type of server side scripting or coding your web host supports since at some point you will want to be able to send form results by email or connect to a data source. Below are bits of code you can use to test your server if you do not know what your web host supports. Create a page with each of the names and code given then upload them to your web server. Visit the page in your browser to see whether or not your host supports the stated scripting.

ASP.NET

To test the ASP.NET version on your server copy and paste the following then upload it as test.aspx..

<%@ Page Language="VB" %>
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
lblVersion.Text = "Your server is running ASP.NET and the version is " & System.Environment.Version.ToString()
End Sub
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ASP.NET Version</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Label ID="lblVersion" runat="server"></asp:Label>
</form>
</body>
</html>

 ASP.NET is most commonly found on Windows servers but there are implementation for Linux (Mono) and Mac/FreeBSD

To test for PHP support

To test for php support all you need to do is create a simple page and between the body tags in code view insert the following line and save as test.php.

<?php phpinfo(); ?>

PHP support is commonly available on both Windows and Linux systems.

Classic ASP

There are two ways of testing for Classic ASP support. One is almost as simple as the php test above with the following line added as the first line on the page (above the doctype):

<%@LANGUAGE="VBSCRIPT"%>

And the following tag written in-between the body elements:

<% response.write "Yes, there is asp support on this server." %>

Save your page as test.asp. However, if you are going to test you might as well find out the full extent of Classic ASP support by downloading the objectcheck files follow the instructions and run it from your server. This script will tell you what server components and third party components are installed and available for your use.



Outstanding Hosting