From: Jeff Leggett Date: 2009-05-09T09:13:42+09:00 Subject: Re: CGI help James Britt wrote: > > Your file may need to start with a shebang line: > > #!/usr/local/bin/ruby > Yes, it does - I just left that out of the C&P. > > > Also, print out the correct headers > > http://www.ruby-doc.org/docs/ProgrammingRuby/html/web.html > The CGI does all that for you... My problem is if I take out the inner loop (starting with "if File.readable?(Filename) then" it works fine. I just can't for the life of me see the syntax errors. [jleggett@binford cgi-bin]$ ./vuln.rb ./vuln.rb:27: syntax error ./vuln.rb:29: syntax error end ^ ./vuln.rb:31: syntax error end ^ ./vuln.rb:37: syntax error [jleggett@binford cgi-bin]$ -- Posted via http://www.ruby-forum.com/.