Make sure that the output from the CGI has something like :

Content-Type: text/html

as the first line, followed by 2 blank lines, then start your HTML output. 

eg: 

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

That should solve the problem of the browser interpreting the document as
text/plain. 

(I may be wrong, i think capatlisaion is also important).

On Tue, 5 Dec 2000, Simon Bryan wrote:

> 
> 
> 
> > 
> > You obviously haven't set up the CGI properly.
> > 
> > CGI's must be run through a real web server for a start [testing them dry
> > using just a web browser won't cut it].  And the web server has to
> > recognise that its a CGI script, and hence treat it as such. Also, since
> > this is obviously a Perl CGI, you'll need to have Perl installed properly
> > on the web server host.
> 
> This much I know, the script is in the cgi-bin along with a range of other 
> scripts that I have taken from places like Matts Script Archive. They all work. 
> Yes of course Perl is instaled.
> 
> 
> > So far, this is not your student's problem - but your own.  When properly
> > installed, if it works properly, then you really have no right to deduct
> > marks for this feature "not quite working" - you shouldn't penalise
> > students for your own ineptitude.
> The student received a mark that was appropriate based on the marking 
> scheme that was given out with the task, so there were no complaints. I 
> might not be an expert in Perl but I am an expert in assessment!
> 
>  
> > You'll have to pardon my contempt, but I've had annoying experiences with
> > staff on web related courses who clearly did not understand the topic
> > anywhere near as well as I do.
> No I can't. Contempt should be kept for those that deserve it. After all I have 
> had plenty of bad experiences with programmers with questionable 
> communication and personal skills but that does not mean I have contempt 
> for them all.
> 
> 
> > Given you appear to be running Apache 1.3.9 on www.olmc.nsw.edu.au, 
> this
> > is the quick and dirty.
> Demonstrating your understanding of the topic? :-)
> 
>  
> > In your config, you should have a `ScriptAlias' corresponding to the
> > cgi-bin directory you wish to use.  Alternatively, you could specify
> > Options +ExecCGI in the apropriate <Directory> section, but that requires
> > that you're more careful with your exec bits on the other files in your
> > web tree.
> 
> That is all done as other cgi scripts and perl scripts work fine.
> 
> Thanks for the help anyway Chris.
> 
> > +-================================================-+
> > | Crossfire      | This message was brought to you |
> > | [EMAIL PROTECTED] | on 100% recycled electrons      |
> > +-================================================-+
> 
> 
> --
> Simon Bryan                    [EMAIL PROTECTED]
> Information Technology Manager [EMAIL PROTECTED]
> OLMC Parramatta
> 
> 
> -- 
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://slug.org.au/lists/listinfo/slug
> 

-----------------------------------------------
 Leon Strong        Corporate Network Services
 Pacific Internet          (Australia) Pty Ltd
 Phone: +6102 9253 5742   Fax: +6102 9247 5276
 http://www.pacific.net.au       NASDAQ: PCNTF
-----------------------------------------------



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to