Re: CGI displays contents of script
- From: Paul Lalli <mritty@xxxxxxxxx>
- Date: Tue, 31 Jul 2007 12:16:41 -0700
On Jul 31, 3:00 pm, "J. Gleixner" <glex_no-s...@xxxxxxxxxxxxxxxxxxxxx>
wrote:
jackson_sam...@xxxxxxxxxxx wrote:
On Jul 31, 2:43 pm, Paul Lalli <mri...@xxxxxxxxx> wrote:
On Jul 31, 2:38 pm, jackson_sam...@xxxxxxxxxxx wrote:
Here is my output from the web browser:
#!/usr/bin/perl use CGI; print "Content-type: text/plain\n\n"; print
"TEST";
Also, once you modify your Web server, the shebang line should be on a
line by itself.
#!/usr/bin/perl
use CGI; print "Content-type: text/plain\n\n"; print "TEST";
The OP was giving what his browser was outputting, not the actual
contents of the script. Obviously, his browser (I'm guessing IE) was
interpreting the results as HTML, and therefore displaying it
whitespace-agnostic.
Paul Lalli
.
- References:
- CGI displays contents of script
- From: jackson_samson
- Re: CGI displays contents of script
- From: Paul Lalli
- Re: CGI displays contents of script
- From: jackson_samson
- Re: CGI displays contents of script
- From: J. Gleixner
- CGI displays contents of script
- Prev by Date: Re: NULL value question
- Next by Date: Re: NULL value question
- Previous by thread: Re: CGI displays contents of script
- Next by thread: Re: CGI displays contents of script
- Index(es):
Relevant Pages
|
|