AlkantarClanX12

Your IP : 18.188.107.57


Current Path : /opt/alt/ruby21/lib64/ruby/gems/2.1.0/gems/ruby-lsapi-5.6/examples/
Upload File :
Current File : //opt/alt/ruby21/lib64/ruby/gems/2.1.0/gems/ruby-lsapi-5.6/examples/lsapi_with_cgi.rb

#!/opt/alt/ruby21/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