ok
Direktori : /opt/alt/ruby20/lib64/ruby/gems/2.0.0/gems/ruby-lsapi-5.2/examples/ |
Current File : //opt/alt/ruby20/lib64/ruby/gems/2.0.0/gems/ruby-lsapi-5.2/examples/lsapi_with_cgi.rb |
#!/opt/alt/ruby20/bin/ruby require 'lsapi' require 'cgi' while LSAPI.accept != nil cgi = CGI.new name = cgi['name'] puts cgi.header puts "Hello #{name}! <br> " if name puts "You are from #{cgi.remote_addr}<br>" end