Iam Just trying to run a simple Hello world program and i face some problems
let me know ifthe procedure I followed is correct.
Expand|Select|Wrap|Line Numbers
- #!/usr/bin/perl -wT
- print "Content-type: text/html\n\n";
- print "Hello, world!\n
a file called first.html and placed the above source code in it.
I opened my Internet explorer and then typed "http://servername/~unixid/ and I was able see a file called first.html and when I clicked it I can see the entire code and not only "Hello world".
I created another file called first.cgi and placed the above source code and tried to open it still I cont see hello world printed on my screen.
It will be helpful for me to learn further If I konow how to run a CGI script.
Kindly help me.