Re: CGI displays contents of script



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

.



Relevant Pages

  • Re: mail function
    ... > customers. ... > of time that the browser will wait before it times out. ... > guessing that whilst the script is running then the browser is still ...
    (comp.lang.php)
  • mail function
    ... customers. ... of time that the browser will wait before it times out. ... guessing that whilst the script is running then the browser is still ...
    (comp.lang.php)
  • Re: how can I count the number of seconds a page is viewed?
    ... >> I am guessing I would hold a variable of when it's opened, ... >> script that runs when the page is offloaded, ... Just a shot in the dark really. ... Sessions wouldn't work if I just closed my browser, ...
    (alt.php)
  • Re: how can I count the number of seconds a page is viewed?
    ... >> I am guessing I would hold a variable of when it's opened, ... >> script that runs when the page is offloaded, ... Just a shot in the dark really. ... Sessions wouldn't work if I just closed my browser, ...
    (comp.lang.php)
  • Re: Which Is The Better Approach To Working With Javascript?
    ... implementation has no interprocess communication capability, or ability to interface with a script interpreter. ... Java SCRIPT runs in the browser exclusively. ... No language is written just for a single environment. ...
    (comp.lang.php)