[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

can't run CGI scripts!

Help me out on this one:
I have tried running the following CGI script but it just doesn't in either Lynx or Netscape:
print"Content type: text/html\n\n";
print"Hi there\n";

I name it try.cgi
Whenever I try to open try.cgi in the browser window it just displays the source code instead of Hi There.
I've tried moving the try.cgi file to /home/httpd/cgi-bin also to /usr/cgi-bin as root. but no luck!
one more thing whenever i try to open localhost in the browser window, the "It Worked" message from apache comes.
If I can get a CGI script to work can I execute it from my home page at www.geocities.com/sau_nanda ? 
Thanx in advance.
Saurabh Nanda.

123India.com - India's Premier Portal 
Get your Free Email Account at http://www.123india.com