help getting started

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
kbrockie
-


Joined: 13 Aug 2003
Posts: 3

PostPosted: Wed Aug 13, 2003 9:06 pm    Post subject: help getting started Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Aug 14, 2003 12:41 pm    Post subject: Re: help getting started Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group