» Home
» Error Codes
» software support
» script support
» Email pix walkthrough
» FTP pix walkthrough
» Publishing software walkthrough
» Great Links for web techs


» The Toolbox
» IP, DNS and Whois Toolbox
» SEO Toolbox
» Code Validators
» Server/WebCheck Tools

  Important Information 
Is something important missing from this page?
Let me know what should be added.

Report broken links or issues: webmaster@howtointernet.net
ServerPronto Dedicated Servers


Scripts for testing what works.



PERL test if perl is working.
Copy the code into a text editor.
Save file as a .pl and set permissions to 755

#!/usr/bin/perl
print "Content-type: text/plain\n\nPerl Works Please check your code.\n";


PHP test if PHP is working.
Copy the code into a text editor.
Save file as a .php and set permissions to 644

<?PHP echo('PHP works'); ?>

PHP information. What is enabled for PHP.
Copy the code into a text editor.
Save file as a .php and set permissions to 644

<?php phpinfo(); ?>

PHP sessions. Check if PHP sessions is enabled.
Copy the code into a text editor.
Save file as a .php and set permissions to 644
Refresh the page and the number should increase

<?
session_start();
session_register('count');
?>
<html>
<head>
</head>
<body>

<?
$count++;
echo "<p>You've been here $count times. Thanks!</p>";
?>
</body>
</html>


ASP.Net Check if ASP.Net is running.
Copy the code into a text editor.
Save file as a .aspx The output will display a calendar

<html>
<body>
<form runat="server">
<asp:Calendar runat="server"/>
</form>
</body>
</html>


ASP test. Check if ASP is running.
Copy the code into a text editor.
Save file as a .asp file

<html>
<head>
<TITLE>hi.asp</TITLE>
</head>
<body bgcolor="#FFFFFF">
Today is <%=now%> and all is well
<%if hour(now())>12 THEN%>
Good Evening
<%ELSE%>
Good Morning!
<%END IF%>
</body>
</html>


ASP with VB.Net Check if VB.Net is running.
Copy the code into a text editor.
Save file as a .aspx The output will display a text box

<script runat="server">
Sub submit(Sender As Object, e As EventArgs)
label1.Text=txt1.Text
End Sub
</script>
<html>
<body>
<form runat="server">
Write some text:
<asp:TextBox id="txt1" Width="200" runat="server"/>
<asp:Button id="b1" Text="Copy to Label" OnClick="submit" runat="server"/>
<p> <asp:Label id="label1" runat="server"/> </p>
</form>
</body>
</html>


ASP with CDO(Collaboration Data Objects). Check if CDO is running.
Copy the code into a text editor.
Save file as a .asp change the testemailnow@gmail.com to your own test email account
The output will be a test email sent to the test email account

<%
response.write("Sending Mail via CDO....")
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="testemailnow@gmail.com"
myMail.TextBody="This is a message....."
myMail.Send
set myMail=nothing
response.write("Mail sent....")
%>

ASP SendMail. Check if SendMail is running.
Copy the code into a text editor.
Save file as a .asp change the testemailnow@gmail.com to your own test email account
Change the "user@domain.com" to the email account to send from
Change the mail_server = "mail.domain.com" to the mail server you are testing
The output will be a test email sent to the test email account

<%@ Language=VBScript %>
<HTML>
<HEAD>
<title>Testing SendMail ASP Component written in Java</title>
</HEAD>
<BODY>

<h1>Testing SendMail ASP Component written in Java</h1>
<pre>
<%

' This sample VBScript ASP code shows how to use the SendMail
' ASP component.


mail_server = "mail.domain.com"

from = "user@domain.com"
to_address = "testemailnow@gmail.com"

headers = "From: User Testing <user@domain.com>" & vbCRLF & _
"To: Test Address <testemailnow@gmail.com.com>" & vbCRLF & _
"Subject: This is a test message to test the SendMail class."


body = "This is line 1." & vbCRLF & _
"This is the 2nd line." & vbCRLF & _
"The third line." & vbCRLF & _
"Line number four." & vbCRLF & vbCRLF & _
" -- Signature line."

Set mailer = Server.CreateObject ("SMTPsvg.SendMail")

mailer.setSMTPServer (mail_server)

mailer.setFrom (from)
mailer.setTo (to_address)
mailer.setHeaders (headers)
mailer.setBody (body)

mailer.deliver

%>
</pre>
</body>
</html>


Cold Fusion test. See if ColdFusion is running
Copy the code into a text editor.
Save file as a .cfm file Output will display the system time on the screen
<HTML>
<HEAD>
<TITLE>ColdFusion Test Page</TITLE>
</HEAD>
<BODY>
Testing ColdFusion ... <P>
<cfset nowtime = Now()>
Today's date is <cfoutput>#DateFormat(nowtime, 'mm/dd/yy')#</cfoutput>
<P>
</body>
</html>


Ruby test. See if Ruby is supported
Copy the code into a text editor.
Save file as a .rb file and set permissions to 755

#!/usr/bin/env ruby
print "HTTP/1.0 200 OK\r\n"
print "Content-type: text/html\r\n\r\n"
print "<html><body>Hello World!</body></html>\r\n"


Tutorials for languages used to create websites
Learn the basics to help spot why pages aren't working

Code tutorials: Dream in Code
Code tutorials: W3 Schools
ASP.Net: Active Server Pages.net
AJAX: Asynchronous JavaScript and XML
C++
C#
CGI: Common Gateway Interface
Coldfusion
CSS: Cascading style sheet
DHTML: Dynamic Hyper Text Mark-up Language
Flash
HTML: Hyper Text Mark-up Language
Java
JS: Javascript
JSP: JavaServer Pages
MySQL
Video Tutorial for MySQL 5
Perl
PHP: Hypertext Preprocessor
Python
ROR: Ruby on Rails
SSI: Server Side Includes
SQL: Structured Query Language
VB: Visual Basic
WAP/WML: Wireless Application Protocol & Wireless Markup Language
XML: eXtensible Markup Language
Betcha didn't think there were so many ways to create a web page! There are many more out there, these are just some of the more common ones.

» General Disclaimer » Site Map » FAQ » Feedback
© 2008 webpagestart.com