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..

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.