Re: How to display a Text file using web browser under CGI

2004-08-14 Thread Bryan Harris
n file: $file_loc"; > print end_html(); > } > > Hope it works ;) > > Luka > >> >> Od: "Sun, Jian" <[EMAIL PROTECTED]> >> Datum: 2004/08/10 Tor PM 10:52:05 GMT+02:00 >> Za: <[EMAIL PROTECTED]> >> Cc: <[EMAIL PROT

re: How to display a Text file using web browser under CGI

2004-08-14 Thread lfurlan
rint header; print start_html(); print "Cant open file: $file_loc"; print end_html(); } Hope it works ;) Luka > > Od: "Sun, Jian" <[EMAIL PROTECTED]> > Datum: 2004/08/10 Tor PM 10:52:05 GMT+02:00 > Za: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTEC

Re: How to display a Text file using web browser under CGI

2004-08-13 Thread Jan Eden
Hi Jian, Sun, Jian wrote on 10.08.2004: >Dear all; >Could anybody help me to figure out How to display a Text file using the web >browser in a CGI program? > >Thanks in advance >Jian > Try this: #!/usr/bin/perl -wT use strict; use CGI; my $q = new CGI; print $q->header(-type=>'text/htm

Re: How to display a Text file using web browser under CGI

2004-08-13 Thread David Dorward
On 10 Aug 2004, at 21:52, Sun, Jian wrote: Could anybody help me to figure out How to display a Text file using the web browser in a CGI program? * output suitable http headers such as the content type * open the file * read the file * output the file Where are you having difficulty? -- David

How to display a Text file using web browser under CGI

2004-08-13 Thread Sun, Jian
Dear all; Could anybody help me to figure out How to display a Text file using the web browser in a CGI program? Thanks in advance Jian -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]