Directly below are adverts, if you find this website useful, please visit our sponsors links.


How do I test if Perl is working on my server?

Create a file called test.pl

Add the following text:

#!/usr/local/bin/perl
 print "Content-type: text/html\n\n";
 print "test\n";

Upload it to your cgi-bin directory by ftp.

(If you do not have a cgi-bin directory create one on the server.)

Open your web browser and run:

yourdomain.com/cgi-bin/test.pl

The word test will be displayed.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


6 + = 11

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>