Hi Dale,
When this script fails, it's usually a server configuration problem,
which is not really on-topic here, but.
1) what do you mean by full path? bear in mind that the path you
specify in the URL will get munged by the web server.
2) what error does the browser show you? permissions, file not found,
or does it simply show you the text of your script.
3) what gets written to the log files on the web server? This is
usually the best place to start.
Do a bit more investigating, and try reading the FAQ for your server.
Gary
On Tuesday 01 May 2001 4:28 pm, Dale Owens wrote:
> > Hello,
>
> I am completely new to perl and this question may seem really lame,
> but I can't get the most basic script to work. I am trying to run
> this on my web host's server:
>
> #!usr/bin/perl
>
> print "Content-type: text/html\n\n";
> print "<html><body><h1>Hello World!\n</h1></body></html>";
>
> I then try to access the script by providing the full path to it in
> the address bar of my browser. I have set the mode of the above file
> to 755 and am using the proper path to perl according the the web
> host. I have written a perl script to handle form input, but if I
> can't get the above to work, the form processor is useless. Is this
> a problem with the web host or am I missing something in the way I am
> trying to output content to the web page?
>
> Dale
--
Gary Stainburn
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000