D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby18
/
lib64
/
ruby
/
gems
/
1.8
/
gems
/
ruby-lsapi-5.6
/
examples
/
Filename :
lsapi_with_cgi.rb
back
Copy
#!/opt/alt/ruby18/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