Hi
thanx all for helping me with my last post on PERL, but now i found, yet another, silly obsticle
to overcome: using perl with the web.
i tried using some of my material's examples, but the same problem.
My programs are jus read as plain txt.
Ex1
#begining of example
this is my OWN perl script:
#begining of example
print "content-type = \"html\"\n";
print "\n";
print "<html>\n";
print "<head>\n";
print "</head>\n";
print "<body>\n";
print "hello";
print "</body>";
print "</html>";
#end of example
AND THIS IS WHAT IS DISPLAYED ON MY BROWSER WHEN I CALL IT WITH A <A HREF>.
#begining of example
print "content-type = \"html\"\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "hello"; print ""; print "";
#end of example
i am new @ perl and my goal with it is to use it for web information proccessing(some proggrammer, cant even get the examples to work)
in my example they try to EMPHASIZE that u have to leave a BLAN K LINE after "CONTENT-TYPE: html/text",is that true
and when i rename my PERLSSCRIPT.pl to PERLSCRIPT.cgi it saves it as a *.txt file,
but when i rename it on the server self(via ftp) it changes "correctly" but i still cant use it(
with CGI scripts it jus give me an "PAGE NOT FOUND" error).
and that lead me to believe that CGI scripts can only be executed on a server.
PLEASE HELP.
thanx for reading this long post.




)
Reply With Quote