PHP 8.2.31
Preview: testlsapi.rb Size: 267 B
/proc/thread-self/root/opt/alt/ruby27/share/gems/gems/ruby-lsapi-5.6/examples/testlsapi.rb

#!/opt/alt/ruby27/bin/ruby

require 'lsapi'

$count = 0;

while LSAPI.accept != nil
	print "HTTP/1.0 200 OK\r\nContent-type: text/html\r\n\r\nHello World! \##{$count}<br>\r\n"
	ENV.each_pair {|key, value| print "#{key} is #{value}<br>\r\n" }
	$count = $count + 1
end

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
239 B lrwxr-xr-x 2026-04-23 09:51:05
Edit Download
267 B lrwxr-xr-x 2026-04-23 09:51:05
Edit Download

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