Test CGI Script

It’s really easy to test your CGI (or a perl script) by adding a test.cgi script with the permissions:  755

Just make sure there is no white space on the top or bottom of the file and the file only has exactly what’s show below. Make sure the name is test.cgi and put in your main folder. Then go to www.your-main-domain.com/test.cgi


# hello.pl -- my first perl script!

print "Content-type: text/html\n\n";

print <<"EOF";

<TITLE>Hello, world!</TITLE>

<H1>Hello, world!</H1>