L
lahirister
Hi,
Can anyone please say what is wrong with this code:
require "cgi"
index = CGI.new("html3")
if (! FileTest.exists?("config.ini")) then
index.out{"Cannot find config.ini file"}
exit
end
print index.a("http://www.example.com"){ "Example" }
What is wrong with the last line. When I execute this through the web
browser I can see in the error logs:
[Tue Nov 01 23:22:03 2005] [error] [client 10.38.0.15] Premature end of
script headers: index.cgi
Thanks
Depp
Can anyone please say what is wrong with this code:
require "cgi"
index = CGI.new("html3")
if (! FileTest.exists?("config.ini")) then
index.out{"Cannot find config.ini file"}
exit
end
print index.a("http://www.example.com"){ "Example" }
What is wrong with the last line. When I execute this through the web
browser I can see in the error logs:
[Tue Nov 01 23:22:03 2005] [error] [client 10.38.0.15] Premature end of
script headers: index.cgi
Thanks
Depp