Re: perl-cgi

From: Chris Devers (cdevers_at_pobox.com)
Date: 10/24/04


Date: Sat, 23 Oct 2004 18:49:53 -0400 (EDT)
To: mk76@buffalo.edu

THis is more a matter for the beginners-cgi list, but oh well.

On Sat, 23 Oct 2004 mk76@buffalo.edu wrote:

> In the options for the directory on my server I have included ExecCGI
> and also the script has read/execute access for anybody

Let's keeep this very simple for now. Try something like this:

    #!/usr/bin/perl

    print "Content-type: text/plain\n\n";

    print "If you can read this, CGI works.";

If the web browser displays the source code, Apache isn't set up right.

If the web browser shows the message, you can move to the bigger script.

My hunch is that you're going to get the raw source code. If that's the
case, can you send the <directory ...> block from your httpd.conf file?
 

-- 
Chris Devers


Relevant Pages

  • Re: Hiding the source code
    ... > How do i hide the source code of my page such that it can't be viewed on a ... I expect you mean your script... ... Do a google on VBScript +Encode. ...
    (microsoft.public.scripting.vbscript)
  • Re: Augmenting Types
    ... So if the screenshot was not of an error message generated by ... instantiating an ActiveX object, how can you possibly know that there is ... source code that lead to it (you only know that ActiveX objects are not ... Too late for the script in question to go on about its merry way. ...
    (comp.lang.javascript)
  • Re: Getting in to metaprogramming
    ... The GUI designer may use ... Yikes, this is getting hairy- If "the problem" is to generate source code, ... Hypercard 4GL, I used to frequently use Hypercard scripts to generate ... each button with a custom script. ...
    (comp.lang.python)
  • [opensuse] Re: Cant connect to MySQL
    ... Try to start your MySQL server from Yast. ... The script starts and the dictionary layout is displayed in my web browser, ... The script is perl script, ...
    (SuSE)
  • Re: Getting in to metaprogramming
    ... The GUI designer may use ... Yikes, this is getting hairy- If "the problem" is to generate source code, ... each button with a custom script. ... that the language does not directly support, ...
    (comp.lang.python)