View previous topic :: View next topic |
Author |
Message |
kbrockie -
Joined: 13 Aug 2003 Posts: 3
|
Posted: Wed Aug 13, 2003 9:06 pm Post subject: help getting started |
|
|
Hi there,
Not a complete novice but having problems - probably something simple. Have installed abyss and followed instructions to set up perl cgi scipts. Have written a tiny script simply to return a page saying hi when a button is clicked to test it out (all files are on my machine - only want to use this as a personal web server and since I have Windows Me - can't get MS PWS to work properly)
everything ok except the HHTP header and W3C standard doc type headers etc are being printed in the web page, as are all of the "\n" characters etc - here is the script:-
#!usr/bin/perl
print "Content-type: text/html\n\n";
print "<!DOCTYPE HTML PUBLIC "
."\"-//W3C//DTD HTML 4.0//EN\">\n" ;
print <<END ;
<HTML>\n
<HEAD>\n
<TITLE> Keith's web page </TITLE>\n
</HEAD>\n
<BODY>\n
<H1>hello this is keith's web page!!</H1>\n
</BODY>\n
</HTML>\n
END
told you it was tiny! any help please?
thanks
Keith
PS Just finished an IT course and the above (and many more complex perl scripts) worked well on university apache server - the headers etc are all copied from scripts I know work!!.
PPS Abyss seems cool! |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Aug 14, 2003 12:41 pm Post subject: Re: help getting started |
|
|
kbrockie,
We tested your script and it works correctly.
*We installed Perl support as described in http://www.aprelium.com/abyssws/perl.html .
* We created a file called test.pl in the htdocs folder (located in the Abyss Web Server installation folder), copied your script in it, and saved it.
* We browsed http://127.0.0.1/test.pl .
If there is any problem, please let us know. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|