PHP 8.3.31
Preview: lsapi_with_cgi.rb Size: 239 B
/proc/thread-self/root/opt/alt/ruby34/share/gems/gems/ruby-lsapi-5.6/examples/lsapi_with_cgi.rb

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

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
239 B lrwxr-xr-x 2026-04-23 10:21:39
Edit Download
267 B lrwxr-xr-x 2026-04-23 10:21:39
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).